Few more updates [skip ci]

This commit is contained in:
Akkadius
2019-07-09 03:46:59 -05:00
parent 54ea7d7c4b
commit 1a577014d9
5 changed files with 40 additions and 40 deletions
+3 -4
View File
@@ -642,10 +642,9 @@ void Client::DoSuccessfulLogin(
*/
void Client::CreateLocalAccount(const std::string &username, const std::string &password)
{
auto mode = server.options.GetEncryptionMode();
auto hash = eqcrypt_hash(username, password, mode);
unsigned int db_id = 0;
auto mode = server.options.GetEncryptionMode();
auto hash = eqcrypt_hash(username, password, mode);
unsigned int db_id = 0;
if (!server.db->CreateLoginData(username, hash, "local", db_id)) {
DoFailedLogin();
}