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

feature: Login remember me functionality #7803

Merged
merged 1 commit into from Jan 8, 2022

Conversation

confuzeus
Copy link
Contributor

Allow users logging into the admin to specify whether they want to be remembered or not.

Instead of remembering users all the time, from now on:

  • Sessions expire on browser close if Remember me checkbox is unchecked.

  • Otherwise, they're set to expire after SESSION_COOKIE_AGE.

@squash-labs
Copy link

squash-labs bot commented Dec 20, 2021

Manage this branch in Squash

Test this branch here: https://confuzeuslogin-remember-me-or5pj.squash.io

@kaedroho
Copy link
Contributor

kaedroho commented Jan 6, 2022

Thanks @confuzeus!

Just wondering if you could attach a screenshot of how this change looks?

@confuzeus
Copy link
Contributor Author

Thanks @confuzeus!

Just wondering if you could attach a screenshot of how this change looks?

For sure @kaedroho :

Screenshot from 2022-01-06 13-46-21

The template code was already there but commented out. I simply uncommented it and implemented the functionality in the view.

Copy link
Member

@lb- lb- left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@confuzeus thanks so much, this works great.
We discussed this within the core team and think this would be a great addition, approved.

Will merge in shortly (I will rebase, add changelog etc)

- Improve wagtail/admin/views/account.py
- Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
@lb- lb- merged commit 10f54bc into wagtail:main Jan 8, 2022
lb- added a commit to lb-/wagtail that referenced this pull request Jan 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants