Ignore:
Timestamp:
1999-07-14T11:23:26+12:00 (25 years ago)
Author:
rjmcnab
Message:

Put users in their own gdbm database. Moved a lot of functionality to usersdb

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/src/recpt/authenaction.h

    r369 r374  
    1919#include "receptionist.h"
    2020
    21 // information about a single user
    22 struct userinfo_t {
    23   void clear ();
    24   userinfo_t () {clear();}
    25 
    26   enum status_t {enabled, disabled, invalid, failed, permissiondenied};
    27  
    28   text_t username;
    29   text_t password;
    30   status_t status;
    31   text_t groups; // comma separated list
    32 };
    33 
    34 // information about all the users
    35 typedef map<text_t, userinfo_t, lttext_t> userinfo_tmap;
    36 
    37 
    3821
    3922// note: you need to tell this action about the receptionist
     
    4225class authenaction : public action {
    4326protected:
    44   text_t passwdfile;
     27  text_t usersfile;
    4528  text_t keyfile;
    4629  int keydecay;
    47 
    48   userinfo_tmap userinfo;
    4930
    5031  receptionist *recpt;
Note: See TracChangeset for help on using the changeset viewer.