Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autologout demo bug? #35

Open
GreeKatrina opened this issue Nov 18, 2015 · 0 comments
Open

autologout demo bug? #35

GreeKatrina opened this issue Nov 18, 2015 · 0 comments

Comments

@GreeKatrina
Copy link

For the autologout demo, on lines 147+

 //On mobile js is paused, so see if this was triggered while we were sleeping
if (diff >= session.warningTimeout || warning <= session.minWarning) {
    $("#mdlLoggedOut").modal("show");
} else {

To make sure I understand the code correctly:
Let's say warningTimeout is 10 minutes, and minWarning is 5 seconds.
This will logout the user if they are on a different app for 10 or more minutes, which make sense.
But wouldn't the warning <= session.minWarning logout the user if they went to an app for less than 5 seconds? I think it's supposed to be warning >= session.minWarning.

If am wrong about this, could you please tell me why? Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant