X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Flogin_src%2Fdatabase_tpl.c;h=f164c0b8f948b264c43974db91dff5224c48c418;hb=be5123fe1f4aa66b76ce8ef589362ad21b6bbf72;hp=0f794694c63542b077993ddc3b5ba2a290d4e40d;hpb=56b770130dc830c6a9dccb6c50e6442a8bdb0b6c;p=tpg%2Facess2.git diff --git a/Usermode/Applications/login_src/database_tpl.c b/Usermode/Applications/login_src/database_tpl.c index 0f794694..f164c0b8 100644 --- a/Usermode/Applications/login_src/database_tpl.c +++ b/Usermode/Applications/login_src/database_tpl.c @@ -22,11 +22,12 @@ tUserInfo gUserInfo; */ int ValidateUser(char *Username, char *Password) { - printf("Username: %s\n", Username); if(Username == NULL) return -1; if(Password == NULL) return -1; 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; } @@ -47,6 +48,16 @@ tUserInfo *GetUserInfo(int UID) case 1: gUserInfo.Home = "/Acess/Users/tpg"; break; + case 2: + gUserInfo.UID = 0; //HACK! + 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;