Fix bugs: Logically Fail to Login in when table is empty
This commit is contained in:
@@ -15,6 +15,8 @@ struct UserStruct {
|
||||
|
||||
void init_user_data(sqlite3 *db);
|
||||
|
||||
bool is_user_table_empty(sqlite3 *db);
|
||||
|
||||
void register_user(sqlite3 *db, const string &username,
|
||||
const string &userpassword);
|
||||
bool login_user(sqlite3 *db, const std::string &username,
|
||||
|
||||
Reference in New Issue
Block a user