Login split error messages

Hello!
Is there any way to split error messages (username and password), when authentication fails?
At this moment I can get only one common error in [[+errors]] placeholder.
The code in the Login controller does not do it core/components/login/controllers/web/Login.php

Thank you.

The Login extra uses the normal MODX β€œsecurity/login” processor.
So you should be able to change the lexicon strings login_cannot_locate_account and login_username_password_incorrect (Namespace = core | Topic = login) to differentiate between a wrong username and a wrong password.


But for security reasons, it’s usually better to keep the error ambivalent.
Also, this change will affect the manager-login as well.

1 Like