Roxen.git / server / base_server / config_userdb.pike

version» Context lines:

Roxen.git/server/base_server/config_userdb.pike:45:    ")" );    switch( name )    {    case "settings":    master()->resolv("DBManager.is_module_table")    (0, "local", name, "Settings for configuration user interface");    break;    case "modules":    master()->resolv("DBManager.is_module_table")    (0, "local", name, "Module information cache"); +  master()->resolv("DBManager.inhibit_backups")("local", name);    break;    default:    master()->resolv("DBManager.is_module_table")    (0, "local", name, "Settings");    break;    }    }    }       mixed set( string name, mixed to )
Roxen.git/server/base_server/config_userdb.pike:564:    case "c_password":    if( id->variables[rp] != password )    password = id->variables[rp];    save();    break;       case "password":    if( strlen( id->variables[rp] ) &&    (id->variables[rp+"2"] == id->variables[rp]) )    { -  password = crypt( id->variables[rp] ); +  password = crypt_password( id->variables[rp] );    save();    }    else if( strlen( id->variables[rp] ) )    error = "Passwords do not match";    break;       default:    if( sscanf( v, "add_%s.x", v ) )    {    report_notice( "Permission "+v+" added to "+real_name+
Roxen.git/server/base_server/config_userdb.pike:667:    }    }    return replace(form,"PPP",varpath)+    "</td></tr></table>";    }       void restore()    {    mapping q = config_settings->get( name+"_uid" ) || ([]);    real_name = q->real_name||""; -  password = q->password||crypt("www"); +  password = q->password||crypt_password("www");    permissions = mkmultiset( q->permissions||({}) );    if( settings_cache[ name ] )    settings = settings_cache[ name ];    else    settings = settings_cache[ name ] = ConfigurationSettings( name );    }       AdminUser save()    {    config_settings->set( name+"_uid", ([
Roxen.git/server/base_server/config_userdb.pike:698:    return permissions[ operation ] || permissions->Everything;    }       int valid_id( RequestID id )    {    if(!id->realauth)    return 0;    array auth = id->realauth/":";    if( sizeof(auth) < 2 ) return 0;    if( auth[0] != name ) return 0; -  if( crypt( auth[1], password ) ) return 1; +  if( verify_password( auth[1], password ) ) return 1;    }       protected void create( string n )    {    name = n;    restore( );    }       protected string _sprintf()    {