updated readme & small refactor

This commit is contained in:
2020-09-07 12:23:00 -05:00
parent 458843958b
commit c8c4ec7d01
3 changed files with 9 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ void Database::open()
int Database::addAccount(std::string login, std::string password)
{
password = BCrypt::generateHash(password);
Account x;
Account x = {};
x.Login = login;
x.Password = password;
x.Selected = 1;