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.3 2001/01/29 05:02:02 nilsson Exp $"; +  "$Id: auth_httpcookie.pike,v 1.4 2001/01/29 05:40:32 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)      #include <module.h>    - LocaleString module_name_locale = + LocaleString module_name =    _(1,"HTTP Cookie authentication");    - LocaleString module_doc_locale = + LocaleString module_doc =    _(2,"Authenticate users using a cookie.");      static User low_authenticate( RequestID id,    string user, string password,    UserDB db )   {    if( User u = db->find_user( user ) )    if( u->password_authenticate( password ) )    return u;   }