[sork] Unable to get _passwd_hook_username to work

Michael mike at soroki.com
Sat May 10 13:52:26 UTC 2008


Jan Schneider <jan <at> horde.org> writes:
> 
> You missed the probably most important information: how does you hook  
> code look like?
> 
> Jan.
> 

The actual hook code didn't change other then changing the @example.com to my
domain.

// Here is an example _passwd_hook_username function to translate what the
// user enters, in the username box, into what the backend expects. If we want
// to add @example.com to the end of the username then enable the hook and use
// this function.

 if (!function_exists('_passwd_hook_username')) {
     function _passwd_hook_username($userid)
     {
         return $userid . '@domain.com';
     }
 }






More information about the sork mailing list