1
0
Fork 0
forked from External/ergo

add loglines for account registration, login, and unregistration

This commit is contained in:
Shivaram Lingamneni 2019-02-13 02:42:35 -05:00
parent f40c363170
commit 6d690b0e36
4 changed files with 16 additions and 7 deletions

View file

@ -593,6 +593,11 @@ func (am *AccountManager) Verify(client *Client, account string, code string) er
return err
}
nick := "[server admin]"
if client != nil {
nick = client.Nick()
}
am.server.logger.Info("accounts", "client", nick, "registered account", casefoldedAccount)
raw.Verified = true
clientAccount, err := am.deserializeRawAccount(raw)
if err != nil {