11 int ValidateUser(char *Username, char *Password);
12 tUserInfo *GetUserInfo(int UID);
19 * \fn int ValidateUser(char *Username, char *Password)
20 * \brief Validates a users credentials
21 * \return UID on success, -1 on failure
23 int ValidateUser(char *Username, char *Password)
25 if(Username == NULL) return -1;
26 if(Password == NULL) return -1;
27 if(strcmp(Username, "root") == 0) return 0;
28 if(strcmp(Username, "tpg") == 0) return 1;
29 if(strcmp(Username, "gui") == 0) return 2;
34 * \fn void GetUserInfo(int UID)
35 * \brief Gets a users information
37 tUserInfo *GetUserInfo(int UID)
41 gUserInfo.Shell = "/Acess/Bin/CLIShell";
45 gUserInfo.Home = "/Acess/Root";
48 gUserInfo.Home = "/Acess/Users/tpg";
51 gUserInfo.UID = 0; //HACK!
52 gUserInfo.Home = "/Acess/Users/gui";
53 gUserInfo.Shell = "/Acess/Apps/AxWin/1.0/AxWinWM";
56 gUserInfo.Home = "/Acess/Users/Guest";