Openbravo Issue Tracking System - Retail Modules
View Issue Details
0024320Retail ModulesWeb POSpublic2013-07-11 18:092013-08-20 13:01
adrianromero 
guilleaer 
urgentmajorhave not tried
closedfixed 
5
 
RMP26RMP26 
marvintm
No
0024320: Going to the login page does not log out from web pos
After a successfully login while you are in the main retail page:

web/org.openbravo.retail.posterminal/?terminal=VBS-1#retail.pointofsale

if you go directly to the login page without loggin out first:

web/org.openbravo.retail.posterminal/?terminal=VBS-1#login
 
You are not logged out from the first session.

This is specially important in ondemand instances because one user is allowed to have only one session active at a time: http://wiki.openbravo.com/wiki/Openbravo_On_Demand_FAQ#What_is_an_active_named_user.3F [^]

So if a user that successfully logs in into the application and goes to the login page without logging out first, it will not be prevented to log in again because there is an active session for him. The only way to unlock this situation is to ask an administrator to kill the session from the Openbravo backoffice.
In description
Two possible approach

* Every time the user goes to the login page the application must log out automatically if there is an active session

* If the user goes to the login page and there is an active session, the application goes to the main page.
No tags attached.
Issue History
2013-07-11 18:09adrianromeroNew Issue
2013-07-11 18:09adrianromeroAssigned To => marvintm
2013-07-12 19:56dmitry_mezentsevNote Added: 0059960
2013-07-15 12:23jecharriResolution time => 1375912800
2013-07-15 12:23jecharriTarget VersionRMP25 => RMP26
2013-08-05 19:24hgbotCheckin
2013-08-05 19:24hgbotNote Added: 0060505
2013-08-05 19:24hgbotStatusnew => resolved
2013-08-05 19:24hgbotResolutionopen => fixed
2013-08-05 19:24hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d66b1b2010ce218c0ff791f3e43e17608fa0de9e [^]
2013-08-20 12:55marvintmReview Assigned To => marvintm
2013-08-20 12:55marvintmStatusresolved => closed
2013-08-20 12:55marvintmFixed in Version => RMP26
2013-08-20 12:58guilleaerAssigned Tomarvintm => guilleaer
2013-08-20 12:58guilleaerNote Added: 0060679
2013-08-20 12:58guilleaerStatusclosed => new
2013-08-20 12:58guilleaerResolutionfixed => open
2013-08-20 12:58guilleaerFixed in VersionRMP26 =>
2013-08-20 12:59guilleaerNote Deleted: 0060679
2013-08-20 13:00guilleaerStatusnew => acknowledged
2013-08-20 13:00guilleaerStatusacknowledged => scheduled
2013-08-20 13:00guilleaerfix_in_branch => pi
2013-08-20 13:00guilleaerStatusscheduled => resolved
2013-08-20 13:00guilleaerFixed in Version => RMP26
2013-08-20 13:00guilleaerResolutionopen => fixed
2013-08-20 13:01marvintmStatusresolved => closed

Notes
(0059960)
dmitry_mezentsev   
2013-07-12 19:56   
I like the second approach more as it is similar to the back office.
(0060505)
hgbot   
2013-08-05 19:24   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: d66b1b2010ce218c0ff791f3e43e17608fa0de9e
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Mon Aug 05 19:14:54 2013 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d66b1b2010ce218c0ff791f3e43e17608fa0de9e [^]

fixed issue 24320: If login route is inserted manually in the url the login page is shown only if you are not logged. Otherwise main page will be shown

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
---