Remember me always checked

78 views
Skip to first unread message

carlos

unread,
Dec 6, 2017, 7:54:16 PM12/6/17
to iDempiere
Hi:

I do not know if its a bug or feature but it can be annoying for security reasons. When you login into idempiere and do not check the remember me checkbox then log out from the session the remember me checkbox is checked by itself. If you uncheck it and log in again the same happens. I tested on test.idempiere.org and the same behavior is shown.

Could you please verify it to see how can the remember me checkbox could return to last chosen option or at least give me a clue where could I solve it on the code?

Regards,

Hiep Lq

unread,
Dec 6, 2017, 8:23:29 PM12/6/17
to Mohemmed Bilal Ilyas

it lie on LoginPanel class, line chkRememberMe.setChecked(true);

--
You received this message because you are subscribed to the Google Groups "iDempiere" group.
To unsubscribe from this group and stop receiving emails from it, send an email to idempiere+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/idempiere/574b924f-c0d9-405c-9ef0-6d1636388950%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Lê Quý Hiệp
Email: hie...@hasuvimex.vn
Skype: admin.hasuvimex

Company: Thanh Hoa Fishery Import - Export J.s.c  (HasuvimexDL 47
Add: Lot E, Le Mon Industrial Zone, Thanh Hoa, Vietnam

Hiep Lq

unread,
Dec 6, 2017, 8:29:39 PM12/6/17
to Mohemmed Bilal Ilyas

on AdempiereWebUI.loginCompleted have line BrowserToken.save(mSession, user);
i think this line should call on only case use already choose "Remember Me" other call BrowserToken.remove

Carlos Collazos

unread,
Dec 6, 2017, 11:05:55 PM12/6/17
to idem...@googlegroups.com
Hiep:

Thank you much for your answer. I found the code in AdempiereWebUI but I could not get the value on this class for rememberMe checkbox. Maybe it is needed to save this value on sameplace for recovering inside AdempiereWebUI/

Do you think on a solution?

Regards,

---------------------------------
Carlos Collazos
coll...@gmail.com
----------------------------------

Hiep Lq

unread,
Dec 6, 2017, 11:27:42 PM12/6/17
to Mohemmed Bilal Ilyas
you can set on Env, it have thread scope, or session


For more options, visit https://groups.google.com/d/optout.

Carlos Antonio Ruiz Gomez

unread,
Dec 7, 2017, 4:48:20 AM12/7/17
to idem...@googlegroups.com
Hi, if is not a user preference, but something you want for ALL your users, then you can set the system configurator ZK_LOGIN_ALLOW_REMEMBER_ME

I turned off that flag in my installations because now chrome is able to remember the user and password better than we did on iDempiere.

Regards,

Carlos Ruiz




El 07.12.2017 a las 05:27, 'Hiep Lq' via iDempiere escribió:
you can set on Env, it have thread scope, or session
On Thu, Dec 7, 2017 at 11:05 AM, Carlos Collazos <coll...@gmail.com> wrote:
Hiep:

Thank you much for your answer. I found the code in AdempiereWebUI but I could not get the value on this class for rememberMe checkbox. Maybe it is needed to save this value on sameplace for recovering inside AdempiereWebUI/

Do you think on a solution?

Regards,

---------------------------------
Carlos Collazos
coll...@gmail.com
----------------------------------

On Wed, Dec 6, 2017 at 9:29 PM, 'Hiep Lq' via iDempiere <idem...@googlegroups.com> wrote:

on AdempiereWebUI.loginCompleted have line BrowserToken.save(mSession, user);
i think this line should call on only case use already choose "Remember Me" other call BrowserToken.remove

On Thu, Dec 7, 2017 at 8:23 AM, Hiep Lq <hie...@hasuvimex.vn> wrote:

it lie on LoginPanel class, line chkRememberMe.setChecked(true);

On Thu, Dec 7, 2017 at 7:54 AM, carlos <coll...@gmail.com> wrote:
Hi:

I do not know if its a bug or feature but it can be annoying for security reasons. When you login into idempiere and do not check the remember me checkbox then log out from the session the remember me checkbox is checked by itself. If you uncheck it and log in again the same happens. I tested on test.idempiere.org and the same behavior is shown.

Could you please verify it to see how can the remember me checkbox could return to last chosen option or at least give me a clue where could I solve it on the code?

Regards,


--
Reply all
Reply to author
Forward
0 new messages