You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While it makes sense to give out email has invalid format as error description, password_hash can't be blank isn't a useful error message in client applications, since a user can't do anything about this because setting the password hash is a "private" implementation detail and out of the user's control. Returning this error will only confuse users I guess.
Didn't look into the source yet and how it can be be easily avoided to return this error, just wanted to point that out and would like to hear your feedback.
Thanks a lot!
The text was updated successfully, but these errors were encountered:
Hello everybody,
just followed the guides to setup API authentication.
I played a bit around to see how errors are handled.
When I try to register a user with an invalid email like
infoexample.com
, I get following JSON response:While it makes sense to give out
email has invalid format
as error description,password_hash can't be blank
isn't a useful error message in client applications, since a user can't do anything about this because setting the password hash is a "private" implementation detail and out of the user's control. Returning this error will only confuse users I guess.Didn't look into the source yet and how it can be be easily avoided to return this error, just wanted to point that out and would like to hear your feedback.
Thanks a lot!
The text was updated successfully, but these errors were encountered: