From: Sem Date: Sat, 6 Apr 2013 15:08:08 +0000 (+0200) Subject: Allow openid users set their password. X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=10e8d4bc5631e1b9f0a2ce805a851e7e5f33bfc1;p=lorea%2Felgg.git Allow openid users set their password. --- diff --git a/start.php b/start.php index d59bb2dd1..970a42ed3 100644 --- a/start.php +++ b/start.php @@ -31,9 +31,6 @@ function openid_client_init() { // ... )); - // don't let OpenID users set their passwords - elgg_register_event_handler('pagesetup', 'system', 'openid_client_remove_password'); - // the return to page needs to be public elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'openid_client_public'); elgg_register_event_handler('upgrade', 'system', 'openid_client_run_upgrades'); @@ -62,16 +59,6 @@ function openid_client_set_subtype($user) { update_data($query); } -/** - * Remove the password view from the account settings form - */ -function openid_client_remove_password() { - $page_owner = elgg_get_page_owner_entity(); - if ($page_owner && elgg_instanceof($page_owner, 'user', 'openid')) { - elgg_unextend_view('forms/account/settings', 'core/settings/account/password'); - } -} - /** * Add pages to the list of public pages for walled garden needed for OpenID * transaction