mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
factor out confirmation codes into utils, change their format
This commit is contained in:
parent
490b3722bd
commit
85a536977c
5 changed files with 63 additions and 15 deletions
|
|
@ -732,7 +732,7 @@ func nsUnregisterHandler(server *Server, client *Client, command string, params
|
|||
return
|
||||
}
|
||||
|
||||
expectedCode := unregisterConfirmationCode(account.Name, account.RegisteredAt)
|
||||
expectedCode := utils.ConfirmationCode(account.Name, account.RegisteredAt)
|
||||
if expectedCode != verificationCode {
|
||||
nsNotice(rb, ircfmt.Unescape(client.t("$bWarning: unregistering this account will remove its stored privileges.$b")))
|
||||
nsNotice(rb, fmt.Sprintf(client.t("To confirm account unregistration, type: /NS UNREGISTER %[1]s %[2]s"), cfname, expectedCode))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue