mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-16 01:45:36 +02:00
Fix password changing getting stuck if wrong password is entered once
This commit is contained in:
@@ -596,6 +596,15 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
|
||||
}
|
||||
}
|
||||
|
||||
void RemoteClient::resetChosenMech()
|
||||
{
|
||||
if (chosen_mech == AUTH_MECHANISM_SRP) {
|
||||
srp_verifier_delete((SRPVerifier *) auth_data);
|
||||
auth_data = nullptr;
|
||||
}
|
||||
chosen_mech = AUTH_MECHANISM_NONE;
|
||||
}
|
||||
|
||||
u64 RemoteClient::uptime() const
|
||||
{
|
||||
return porting::getTimeS() - m_connection_time;
|
||||
|
Reference in New Issue
Block a user