1
0
Fork 0
forked from External/ergo

allow SAREGISTER even when normal registration is fully disabled

This commit is contained in:
Shivaram Lingamneni 2019-02-14 19:51:55 -05:00
parent 355491d4e1
commit d147708158
5 changed files with 17 additions and 11 deletions

View file

@ -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