forked from External/ergo
allow SAREGISTER even when normal registration is fully disabled
This commit is contained in:
parent
355491d4e1
commit
d147708158
5 changed files with 17 additions and 11 deletions
|
|
@ -183,7 +183,7 @@ func registrationErrorToMessageAndCode(err error) (message, numeric string) {
|
|||
case errAccountAlreadyRegistered, errAccountAlreadyVerified:
|
||||
message = err.Error()
|
||||
numeric = ERR_ACCOUNT_ALREADY_EXISTS
|
||||
case errAccountCreation, errAccountMustHoldNick, errAccountBadPassphrase, errCertfpAlreadyExists:
|
||||
case errAccountCreation, errAccountMustHoldNick, errAccountBadPassphrase, errCertfpAlreadyExists, errFeatureDisabled:
|
||||
message = err.Error()
|
||||
}
|
||||
return
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue