1
0
Fork 0
forked from External/ergo

Initial ACC update to match the new spec

This commit is contained in:
Daniel Oaks 2019-04-08 10:40:19 +10:00
parent c5dd87a64d
commit 4df71df454
7 changed files with 283 additions and 247 deletions

View file

@ -295,7 +295,7 @@ func nsIdentifyHandler(server *Server, client *Client, command string, params []
}
if loginSuccessful {
sendSuccessfulSaslAuth(client, rb, true)
sendSuccessfulAccountAuth(client, rb, true, true)
} else {
nsNotice(rb, client.t("Could not login with your TLS certificate or supplied username/password"))
}
@ -407,8 +407,7 @@ func nsRegisterHandler(server *Server, client *Client, command string, params []
// details could not be stored and relevant numerics have been dispatched, abort
if err != nil {
errMsg, _ := registrationErrorToMessageAndCode(err)
nsNotice(rb, errMsg)
nsNotice(rb, client.t(registrationErrorToMessageAndCode(err)))
return
}
}