refactored and cleaned up login function

This commit is contained in:
Kamil
2020-11-17 23:51:39 +01:00
committed by Gent S
parent 5c6d7d6055
commit eee8aab888
3 changed files with 102 additions and 94 deletions

View File

@@ -166,6 +166,7 @@ int Database::addAccount(std::string login, std::string password) {
account.Password = password;
account.Selected = 1;
account.Created = getTimestamp();
account.LastLogin = account.Created;
return db.insert(account);
}