Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0002789Openbravo ERP01. General setuppublic2008-04-01 12:052008-06-19 18:18
plujan 
pheenan 
normalminoralways
closedfixed 
5
 
2.40alpha-r2 
No
Core
No
0002789: No feedback when trying to login with a user without roles
Description:
If I try to log in with a user with no role assigned, I get no feedback about why I cannot login.

Steps:
1. Using an Admin user, create a new user. Just complete Name, Username and Password.
2. Logout and try to login with created user. The window reloads and you keep on login page, with no error message.

Proposed solution:
As entering an invalid passowrd, I should see a feedback saying why I am not granted to access the main page.
No tags attached.
depends on backport 0003717 closed pheenan No feedback when trying to login with a user wit 
Issue History
2008-06-19 18:18psarobeStatusresolved => closed

Notes
(0006378)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:43)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1931062 [^]
(0003407)
pheenan   
2008-05-21 17:02   
(edited on: 2008-06-12 09:25)
Logged In: YES
user_id=1883435
Originator: NO

Fixed in revision 4431

Created DefaultValidationException class to catch login default setting errors. Using this to determine if the user has no valid roles assigned which will then clear the session and return the HTMLErrorLogin screen with a warning message to contact the system administrator for access.

Modified the HTMLErrorLogin page to take message parameters similar to other pages.

Failure to locate a valid role will now revert to HtmlErrorLogin page with meaningful message explaining issue. Updated LoginHandler to pass invalid credentials message to HtmlErrorLogin page for invalid username and password combinations.