[pmwiki-users] How to add an user-defined authentication function

Patrick R. Michaud pmichaud at pobox.com
Thu Jun 15 10:18:32 CDT 2006


On Tue, May 16, 2006 at 05:08:52PM -0300, Guillermo Calderon - INCO wrote:
> 
> I have muy own authentication function.
> This function takes authid and authpw as arguments and it returns a boolean.
> 
> I have included this code in my config.php
> 
> 
>  >$AuthUserFunctions['other'] = 'OtherAuthUserFunction';
>  >$AuthUser['other'] = 'foo'; # is it needed?			
> 
>  >function OtherAuthUser($pagename, $id, $pw, $pwlist) {
>  >
>  >  return  my_auth_function($id,$pw));
>  >
>  >}
> 
> It seems to work, but I do not known if it is the correct way to do that.

Yes, this is the correct way to do that.

Pm




More information about the pmwiki-users mailing list