From 10e8d4bc5631e1b9f0a2ce805a851e7e5f33bfc1 Mon Sep 17 00:00:00 2001 From: Sem Date: Sat, 6 Apr 2013 17:08:08 +0200 Subject: Allow openid users set their password. --- start.php | 13 ------------- 1 file changed, 13 deletions(-) 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 -- cgit v1.2.3