1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-06 17:41:04 +00:00

Fix password changing getting stuck if wrong password is entered once

This commit is contained in:
sfan5 2022-04-27 19:32:51 +02:00
parent 1ac378063e
commit a55982e7f0
3 changed files with 13 additions and 0 deletions

View file

@ -242,6 +242,8 @@ public:
u32 allowed_auth_mechs = 0;
u32 allowed_sudo_mechs = 0;
void resetChosenMech();
bool isSudoMechAllowed(AuthMechanism mech)
{ return allowed_sudo_mechs & mech; }
bool isMechAllowed(AuthMechanism mech)