X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Flogin_src%2Fdatabase_tpl.c;h=f164c0b8f948b264c43974db91dff5224c48c418;hb=8e1f78107cc9aa137de29e0c9df3a1fccb483b67;hp=ddead96d5856d009c8f9375aa1d6b42e9fd83f9e;hpb=0dbc91f0676576b954aa95dafdb434ce19bc805c;p=tpg%2Facess2.git diff --git a/Usermode/Applications/login_src/database_tpl.c b/Usermode/Applications/login_src/database_tpl.c index ddead96d..f164c0b8 100644 --- a/Usermode/Applications/login_src/database_tpl.c +++ b/Usermode/Applications/login_src/database_tpl.c @@ -27,6 +27,7 @@ int ValidateUser(char *Username, char *Password) if(strcmp(Username, "root") == 0) return 0; if(strcmp(Username, "tpg") == 0) return 1; if(strcmp(Username, "gui") == 0) return 2; + if(strcmp(Username, "gui3") == 0) return 3; return -1; } @@ -52,6 +53,11 @@ tUserInfo *GetUserInfo(int UID) gUserInfo.Home = "/Acess/Users/gui"; gUserInfo.Shell = "/Acess/Apps/AxWin/1.0/AxWinWM"; break; + case 3: + gUserInfo.UID = 0; + gUserInfo.Home = "/Acess/Root"; + gUserInfo.Shell = "/Acess/Apps/AxWin/3.0/AxWinWM"; + break; default: gUserInfo.Home = "/Acess/Users/Guest"; break;