diff --git a/src/responses/errors.cr b/src/responses/errors.cr index db8e335..2cf12c6 100644 --- a/src/responses/errors.cr +++ b/src/responses/errors.cr @@ -60,11 +60,11 @@ class AuthD::Response end AuthD.responses << ErrorInvalidEmailFormat - IPC::JSON.message ErrorInvalidCredentials, 29 do + IPC::JSON.message ErrorAlreadyUsersInDB, 29 do def initialize() end end - AuthD.responses << ErrorInvalidCredentials + AuthD.responses << ErrorAlreadyUsersInDB IPC::JSON.message ErrorReadOnlyProfileKeys, 30 do property read_only_keys : Array(String) @@ -96,10 +96,4 @@ class AuthD::Response end end AuthD.responses << ErrorInvalidRenewKey - - IPC::JSON.message ErrorAlreadyUsersInDB, 35 do - def initialize() - end - end - AuthD.responses << ErrorAlreadyUsersInDB end