mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-23 11:32:02 -08:00
make erase confirmation code nondeterministic
This commit is contained in:
parent
f87b71b93f
commit
a7f020320e
1 changed files with 2 additions and 0 deletions
|
|
@ -841,6 +841,8 @@ func nsUnregisterHandler(server *Server, client *Client, command string, params
|
||||||
if erase {
|
if erase {
|
||||||
// account may not be in a loadable state, e.g., if it was unregistered
|
// account may not be in a loadable state, e.g., if it was unregistered
|
||||||
accountName = username
|
accountName = username
|
||||||
|
// make the confirmation code nondeterministic for ERASE
|
||||||
|
registeredAt = server.ctime
|
||||||
} else {
|
} else {
|
||||||
account, err := server.accounts.LoadAccount(username)
|
account, err := server.accounts.LoadAccount(username)
|
||||||
if err == errAccountDoesNotExist {
|
if err == errAccountDoesNotExist {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue