Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028213Retail ModulesWeb POSpublic2014-11-18 16:262014-11-24 15:33
aaroncalero 
aaroncalero 
normalmajoralways
closedfixed 
5
pi 
RR15Q1RR15Q1 
mtaal
No
0028213: Login session is active after a failed logging attempt in certain cases
After getting the "Unable to do login" at the login screen, the login session started is still alive and refreshing the page will cause the POS to try to login again.
1. Open a POS terminal login page
2. Try to login with a username/password not available for the current POS Terminal
3. After clicking on the Log in button you will get a "Unable to do login" alert.
4. Refresh the page
5. The POS will automatically try to load with the previous failed session, skipping the logging screen.
Every failed login attempt should clear the active session so that refreshing the login screen doesn't try to load the application without performing the login first
No tags attached.
Issue History
2014-11-18 16:26aaroncaleroNew Issue
2014-11-18 16:26aaroncaleroAssigned To => aaroncalero
2014-11-18 16:26aaroncaleroTriggers an Emergency Pack => No
2014-11-18 16:42hgbotCheckin
2014-11-18 16:42hgbotNote Added: 0071786
2014-11-18 16:42hgbotStatusnew => resolved
2014-11-18 16:42hgbotResolutionopen => fixed
2014-11-18 16:42hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c87b9554057b09301c4c2182ba67f8f33fe5e41a [^]
2014-11-24 15:33mtaalReview Assigned To => mtaal
2014-11-24 15:33mtaalNote Added: 0071940
2014-11-24 15:33mtaalStatusresolved => closed
2014-11-24 15:33mtaalFixed in Version => RR15Q1

Notes
(0071786)
hgbot   
2014-11-18 16:42   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c87b9554057b09301c4c2182ba67f8f33fe5e41a
Author: Aaron Calero <aaron.calero <at> openbravo.com>
Date: Tue Nov 18 16:35:28 2014 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c87b9554057b09301c4c2182ba67f8f33fe5e41a [^]

FIxed issue 28213: Login session is active after a failed logging attempt in certain cases

In order to clear the session started to try the logging process, we call errorLogging() instead of directly executing the code to print the error.
This way, we ensure that the session is cleared and the login attempt is set as Failed

---
M src/org/openbravo/mobile/core/login/MobileCoreLoginHandler.java
---
(0071940)
mtaal   
2014-11-24 15:33   
Tested & reviewed