Branch: Tag:

2001-01-19

2001-01-19 18:34:47 by Per Hedbor <ph@opera.com>

more authentication changes. id->auth is now emulated

Rev: server/modules/security/auth_httpbasic.pike:1.2
Rev: server/modules/security/auth_httpcookie.pike:1.2
Rev: server/protocols/ftp.pike:2.45
Rev: server/protocols/http.pike:1.297

1:   constant cvs_version = -  "$Id: auth_httpcookie.pike,v 1.1 2001/01/19 16:35:47 per Exp $"; +  "$Id: auth_httpcookie.pike,v 1.2 2001/01/19 18:34:45 per Exp $";   inherit AuthModule;   inherit "module";      #define COOKIE "_roxen_cookie_auth"    - constant name = "httpcookie"; + constant name = "cookie";      //<locale-token project="mod_auth_httpcookie">_</locale-token>   #define _(X,Y) _DEF_LOCALE("mod_auth_httpcookie",X,Y)
84:       if( !id->cookies[ COOKIE ] )    return 0; -  +     [password,user] = lookup_cookie( id->cookies[ COOKIE ] );       if( !user || !password )    return 0;    -  +  NOCACHE();    User res;    if( !db )    {
113:   //! database.   {    string u, p; +  NOCACHE();    if( (u=id->variables->_cookie_username) &&    (p=id->variables->_cookie_password) )    {
141:    );   }    - void create() + static void create()   {    defvar( "user_form", Variable.Text(   #"