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

"Remember me" not functioning properly. #31

Closed
shakedown-street opened this issue Oct 30, 2016 · 1 comment
Closed

"Remember me" not functioning properly. #31

shakedown-street opened this issue Oct 30, 2016 · 1 comment
Assignees

Comments

@shakedown-street
Copy link
Collaborator

The remember me checkbox should remember username. It behaves as expected upon logging in and back out, but not if the page closes.

Using cookies probably isn't the best way to store the username.

@shakedown-street
Copy link
Collaborator Author

Set expiration date for the cookie.

  var expireDate = new Date();
  expireDate.setDate(expireDate.getDate() + 1);
  $cookies.put('myFavorite', 'oatmeal', {'expires': expireDate});

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