forked from External/ergo
commit
7347e94da1
1 changed files with 4 additions and 2 deletions
|
|
@ -474,8 +474,10 @@ func (am *AccountManager) Register(client *Client, account string, callbackNames
|
||||||
am.Unregister(casefoldedAccount, true)
|
am.Unregister(casefoldedAccount, true)
|
||||||
return ®istrationCallbackError{underlying: err}
|
return ®istrationCallbackError{underlying: err}
|
||||||
} else {
|
} else {
|
||||||
|
if client != nil && code != "" {
|
||||||
am.server.logger.Info("accounts",
|
am.server.logger.Info("accounts",
|
||||||
fmt.Sprintf("nickname %s registered account %s, pending verification", client.Nick(), account))
|
fmt.Sprintf("nickname %s registered account %s, pending verification", client.Nick(), account))
|
||||||
|
}
|
||||||
return am.server.store.Update(func(tx *buntdb.Tx) error {
|
return am.server.store.Update(func(tx *buntdb.Tx) error {
|
||||||
_, _, err = tx.Set(verificationCodeKey, code, setOptions)
|
_, _, err = tx.Set(verificationCodeKey, code, setOptions)
|
||||||
return err
|
return err
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue