mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Fix multiple password changes in one session
This commit is contained in:
parent
a8cf10b0b5
commit
432988a4ad
4 changed files with 23 additions and 15 deletions
|
@ -243,15 +243,14 @@ public:
|
|||
AuthMechanism chosen_mech = AUTH_MECHANISM_NONE;
|
||||
void *auth_data = nullptr;
|
||||
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)
|
||||
{ return allowed_auth_mechs & mech; }
|
||||
|
||||
void setEncryptedPassword(const std::string& pwd);
|
||||
|
||||
RemoteClient();
|
||||
~RemoteClient() = default;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue