diff options
author | sfan5 <sfan5@live.de> | 2022-04-27 19:32:51 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-05-14 18:33:42 +0200 |
commit | a55982e7f01c83d5289b8018754963299b9e9484 (patch) | |
tree | 80e412bcc33ec2a7c0252601c8e32ede523e815f /src/network | |
parent | 1ac378063e37e5b1485438e5321252b42471ba79 (diff) | |
download | minetest-a55982e7f01c83d5289b8018754963299b9e9484.tar.gz minetest-a55982e7f01c83d5289b8018754963299b9e9484.tar.bz2 minetest-a55982e7f01c83d5289b8018754963299b9e9484.zip |
Fix password changing getting stuck if wrong password is entered once
Diffstat (limited to 'src/network')
-rw-r--r-- | src/network/serverpackethandler.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/network/serverpackethandler.cpp b/src/network/serverpackethandler.cpp index 366ec2d28..6f60b8172 100644 --- a/src/network/serverpackethandler.cpp +++ b/src/network/serverpackethandler.cpp @@ -1640,6 +1640,7 @@ void Server::handleCommand_SrpBytesA(NetworkPacket* pkt) << std::endl; if (wantSudo) { DenySudoAccess(peer_id); + client->resetChosenMech(); return; } @@ -1706,6 +1707,7 @@ void Server::handleCommand_SrpBytesM(NetworkPacket* pkt) << " tried to change their password, but supplied wrong" << " (SRP) password for authentication." << std::endl; DenySudoAccess(peer_id); + client->resetChosenMech(); return; } |