The core form validator, UserLoginForm::validateFinal() sets the error message 'Unrecognized username or password. Forgot your password?'. It would be nice if this could be replaced with something like 'Unrecognized password, username or email address. Forgot your password?'.

This can also be done on site level by changing the translation.

CommentFileSizeAuthor
#2 2807945-01.error-message-text.patch4.67 KBekes

Comments

ekes created an issue. See original summary.

ekes’s picture

StatusFileSize
new4.67 KB

So turns out it's possible. Not too pretty, but possible. It does mean that almost everything is now handled by core, and the worst that likely will happen with changes there is the that the error messages won't be substituted.

  • ekes committed f4c98c1 on 8.x-1.x
    [#2807945] Change form error messages for username/email login.
    
    Also...
ekes’s picture

Status: Active » Fixed
ekes’s picture

Issue tags: +Dublin2016

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.