rust/hedgewars-server/src/server/database.rs
changeset 15109 acd50a72af59
parent 15103 823052e66611
child 15110 6a8c294f49c9
--- a/rust/hedgewars-server/src/server/database.rs	Mon Jun 03 18:56:08 2019 +0200
+++ b/rust/hedgewars-server/src/server/database.rs	Mon Jun 03 22:41:43 2019 +0300
@@ -69,7 +69,7 @@
                 let server_hash = get_hash(protocol, &password, &server_salt, &client_salt);
                 password.replace_range(.., "🦔🦔🦔🦔🦔🦔🦔🦔");
 
-                if server_hash == client_hash {
+                if password_hash == client_hash {
                     Ok(Some(AccountInfo {
                         is_registered: true,
                         is_admin: is_admin == 1,