Roxen.git / server / modules / security / auth_httpcookie.pike

version» Context lines:

Roxen.git/server/modules/security/auth_httpcookie.pike:1:   constant cvs_version = -  "$Id: auth_httpcookie.pike,v 1.5 2001/03/08 14:35:45 per Exp $"; +  "$Id: auth_httpcookie.pike,v 1.6 2001/03/15 23:31:26 per Exp $";   inherit AuthModule;   inherit "module";      #define COOKIE "_roxen_cookie_auth"      constant name = "cookie";      //<locale-token project="mod_auth_httpcookie">_</locale-token>   #define _(X,Y) _DEF_LOCALE("mod_auth_httpcookie",X,Y)   
Roxen.git/server/modules/security/auth_httpcookie.pike:78:   //! database.   //!   //! The return value is the autenticated user.   {    string password;    string user;       if( !id->cookies[ COOKIE ] )    return 0;    [password,user] = lookup_cookie( id->cookies[ COOKIE ] ); -  +     if( !user || !password )    return 0;       NOCACHE(); -  +     User res;    if( !db )    {    foreach( id->conf->user_databases(), UserDB db )    if( res = low_authenticate( id, user, password, db ) )    return res;    Roxen.remove_cookie( id, COOKIE, "", 0, "/" );    return 0;    }    res = low_authenticate( id, user, password, db );