[Tickets #3140] services/resetpassword.php support for _username_hook_tobackend

bugs@bugs.horde.org bugs at bugs.horde.org
Wed May 24 14:59:48 PDT 2006


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: https://dev.horde.org/horde/whups/ticket/?id=3140
-----------------------------------------------------------------------
 Ticket             | 3140
 Updated By         | dorm at dorm.org
 Summary            | services/resetpassword.php support for _username_hook_tobackend
 Queue              | Horde Base
 Version            | FRAMEWORK_3
 State              | Feedback
 Priority           | 3. High
 Type               | Enhancement
 Owners             | Horde Developers
-----------------------------------------------------------------------


dorm at dorm.org (2006-05-24 14:59) wrote:

Sorry, it should be frombackend:

--- resetpassword.php-1.5.10.1.2.1      2005-12-14 16:04:11.000000000 -0700
+++ resetpassword.php   2005-12-14 15:58:04.000000000 -0700
@@ -37,6 +37,15 @@
 
 /* If a username has been supplied try fetching the prefs stored info. */
 if ($username = $vars->get('username')) {
+
+    /* Apply username hook if it's installed */
+    if (!empty($conf['hooks']['username'])) {
+        require_once HORDE_BASE . '/config/hooks.php';      
+        if (function_exists('_username_hook_frombackend')) {
+            $username = call_user_func('_username_hook_frombackend',
$username);
+        }
+    }
+
     $prefs = &Prefs::singleton($conf['prefs']['driver'], 'horde',
$username, '', null, false);
     $prefs->retrieve();
     $email = $prefs->getValue('alternate_email');




More information about the bugs mailing list