Account registrations pending verification should produce a logline and
send a sno.
This commit is contained in:
Shivaram Lingamneni 2021-11-30 01:50:28 -05:00
parent ee720f60e2
commit 9ff4047fa6
3 changed files with 8 additions and 0 deletions

View file

@ -474,6 +474,8 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
am.Unregister(casefoldedAccount, true)
return &registrationCallbackError{underlying: err}
} else {
am.server.logger.Info("accounts",
fmt.Sprintf("nickname %s registered account %s, pending verification", client.Nick(), account))
return am.server.store.Update(func(tx *buntdb.Tx) error {
_, _, err = tx.Set(verificationCodeKey, code, setOptions)
return err