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 password #738

Open
1 task
ssestantech opened this issue Dec 8, 2022 · 1 comment
Open
1 task

remember me password #738

ssestantech opened this issue Dec 8, 2022 · 1 comment

Comments

@ssestantech
Copy link

Is your feature request related to a problem?

remember me password

What do we currently have to do now?

remember me password

Describe the solution you'd like

remember me password checkbox functionality. how will i implement on login page. any doc for this.

Describe alternatives you've considered

No response

Would this be a breaking change ?

  • Yes

Anything else ?

No response

@circulon
Copy link
Contributor

circulon commented Jan 8, 2023

@ssestantech

The simplest way is probably to use a cookie or session to store the user data (depending on the size of the data) during the Login (authentication) flow.
When seting the data define an expiry time for that data lifetime.

If the remember me is checked then a longer time is set until the session/cookie data expires
if not set a default which is defined in the config.session file as part of the driver options

The LoadUserMiddleware is a good place to start digging in to understand the logic as it is loaded (by default) after the SessionMiddleware.
This will show you how the these middlewares work together.

You can the customise your own LoadUserMiddleware if additional logic is necessary.

Hope this helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants