[MAGNOLIA-1712] Allow different login error messages Created: 31/Aug/07  Updated: 23/Jan/13  Resolved: 31/Aug/07

Status: Closed
Project: Magnolia
Component/s: core, security
Affects Version/s: None
Fix Version/s: 3.5 RC1

Type: Improvement Priority: Major
Reporter: Magnolia International Assignee: Magnolia International
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
relation
is related to MAGNOLIA-1711 Allow locking user accounts Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)

 Description   

We currently only display a single login error message ("Username and password do not match. Please try again.") By using the appropriate subclasses of LoginException, we could provide more details to the user if desired.



 Comments   
Comment by Magnolia International [ 31/Aug/07 ]

AbstractLoginModule.validateUser() is now void and throws specific LoginException subclasses to report login problems.
FormClientCallback uses the exception type to determine what message to display (with a default errorMessage if not defined in the message bundles)

Generated at Mon Feb 12 03:29:35 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.