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

version» Context lines:

Roxen.git/server/modules/security/auth_httpcookie.pike:1:   // This is a roxen module. Copyright © 2001, Roxen IS.      constant cvs_version = -  "$Id: auth_httpcookie.pike,v 1.9 2001/09/03 18:40:49 nilsson Exp $"; +  "$Id: auth_httpcookie.pike,v 1.10 2002/06/14 00:08:58 nilsson 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 = -  _(1,"Authentication: HTTP Cookie"); + constant module_name = "Authentication: HTTP Cookie"; + constant module_doc = "Authenticate users using a cookie.";    - 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;   }      static string table;
Roxen.git/server/modules/security/auth_httpcookie.pike:153:   static void create()   {    defvar( "user_form", Variable.Text(   #"   <title>Authentication required for REALM</title>   <body alink=\"#000000\" bgcolor=\"#ffffff\" text=\"#000000\">    <form method='POST'>    Username: UNINPUT<br />    Password: PWINPUT<br />    <input type=submit value=' Ok ' /> - </form></body>",0, -  _(3,"User form"),_(4,"The user/password request form shown to the user"))); + </form></body>", 0, +  "User form", "The user/password request form shown to the user"));   }