#include <stdio.h>
#include <pwd.h>
#include <string.h>
+#include <openssl/sha.h>
#include "common.h"
-#define HACK_TPG_NOAUTH 1
-
// === IMPORTS ===
extern int Bank_GetMinAllowedBalance(int ID);
extern int Bank_GetUserBalance(int ID);
*/
int GetBalance(int User)
{
- return 0;
+ return Bank_GetUserBalance(User);;
}
/**
return ret;
}
-/**
- * \brief Authenticate a user
- * \return User ID, or -1 if authentication failed
- */
-int GetUserAuth(const char *Username, const char *Password)
-{
- #if HACK_TPG_NOAUTH
- if( strcmp(Username, "tpg") == 0 )
- return GetUserID("tpg");
- #endif
- return -1;
-}
-