From: John Hodge Date: Thu, 3 Nov 2011 14:14:06 +0000 (+0800) Subject: Usermode/login - Added GUIv3 hack X-Git-Tag: rel0.14~157 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=5e18690a015be4a160a95216d26805b076350231;p=tpg%2Facess2.git Usermode/login - Added GUIv3 hack --- 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;