Skip to content

Commit

Permalink
Merge pull request #2835 from peter-scholtens/patch-2
Browse files Browse the repository at this point in the history
Expire cookie if RememberMe button is off (again)
  • Loading branch information
BobrImperator authored Oct 18, 2024
2 parents c6b4932 + 8b840e3 commit ebd6cd6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/test-app/app/components/login-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export default class LoginFormComponent extends Component {

if (this.rememberMe) {
this.session.set('store.cookieExpirationTime', 60 * 60 * 24 * 14);
} else {
this.session.set('store.cookieExpirationTime', null);
}
} catch (response) {
let responseBody = await response.clone().json();
Expand Down

0 comments on commit ebd6cd6

Please sign in to comment.