Usermode/login - Added GUIv3 hack
authorJohn Hodge <[email protected]>
Thu, 3 Nov 2011 14:14:06 +0000 (22:14 +0800)
committerJohn Hodge <[email protected]>
Thu, 3 Nov 2011 14:14:06 +0000 (22:14 +0800)
Usermode/Applications/login_src/database_tpl.c

index ddead96..f164c0b 100644 (file)
@@ -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;

UCC git Repository :: git.ucc.asn.au