w3c / validator-suite

Validator Suite
Other
56 stars 23 forks source link

Login with a non-registered email address throws a UnknownUser exception #334

Closed vivienlacourba closed 10 years ago

vivienlacourba commented 11 years ago

Try to https://validator-suite-dev.w3.org/login with an unknown email address (e.g toto@example.com) and you will get the following error: Execution exception[[UnknownUser: UnknownUser]]

Instead there should be an user-friendly error message saying:

Authentication failed. if you have lost your password use the Password Reset page.

Related play logs:

[warn] org.w3.vs.model.User - action=login email=toto@example.com message="Authentication failed. User does not exist." 
[error] application - 

! @6g5g918kf - Internal server error, for (POST) [/login] ->

play.api.Application$$anon$1: Execution exception[[UnknownUser: UnknownUser]]
vivienlacourba commented 10 years ago

@tgambet could you also change the error message to link to the new password reset page ?

Instead there should be an user-friendly error message saying:

Authentication failed. if you have lost your password use the Password Reset page.

tgambet commented 10 years ago

Depends on #278