3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-25 13:29:27 +01:00

make erase confirmation code nondeterministic

This commit is contained in:
Shivaram Lingamneni 2020-04-24 15:41:58 -04:00
parent f87b71b93f
commit a7f020320e

View File

@ -841,6 +841,8 @@ func nsUnregisterHandler(server *Server, client *Client, command string, params
if erase {
// account may not be in a loadable state, e.g., if it was unregistered
accountName = username
// make the confirmation code nondeterministic for ERASE
registeredAt = server.ctime
} else {
account, err := server.accounts.LoadAccount(username)
if err == errAccountDoesNotExist {