rust/hedgewars-server/src/server/database.rs
changeset 15163 bcb98009ad39
parent 15121 1a43b570cbe4
child 15517 abd5eb807166
--- a/rust/hedgewars-server/src/server/database.rs	Sun Jun 16 13:27:14 2019 +0200
+++ b/rust/hedgewars-server/src/server/database.rs	Sun Jun 16 19:16:26 2019 +0300
@@ -69,7 +69,7 @@
                 let server_hash = get_hash(protocol, &password, &server_salt, &client_salt);
                 password.replace_range(.., "🦔🦔🦔🦔🦔🦔🦔🦔");
 
-                if password_hash == format!("{:x}", client_hash) {
+                if client_hash == password_hash {
                     Ok(Some(AccountInfo {
                         is_registered: true,
                         is_admin: is_admin == 1,