File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -464,7 +464,7 @@ where
464
464
== 1 ;
465
465
466
466
if !admin && admin_only {
467
- // Kick any client that's not admin while we're in admin-only mode.
467
+ // Kick any client that's not admin while we're in admin-only mode.
468
468
debug ! (
469
469
"Rejecting non-admin connection to {} when in admin only mode" ,
470
470
pool_name
@@ -531,7 +531,6 @@ where
531
531
}
532
532
} ;
533
533
534
-
535
534
// Compare server and client hashes.
536
535
let password_hash = md5_hash_password (
537
536
& config. general . admin_username ,
@@ -540,7 +539,8 @@ where
540
539
) ;
541
540
542
541
if password_hash != password_response {
543
- let error = Error :: ClientGeneralError ( "Invalid password" . into ( ) , client_identifier) ;
542
+ let error =
543
+ Error :: ClientGeneralError ( "Invalid password" . into ( ) , client_identifier) ;
544
544
545
545
warn ! ( "{}" , error) ;
546
546
wrong_password ( & mut write, username) . await ?;
You can’t perform that action at this time.
0 commit comments