forked from External/ergo
add loglines for account registration, login, and unregistration
This commit is contained in:
parent
f40c363170
commit
6d690b0e36
4 changed files with 16 additions and 7 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue