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

Make password expiration possible for all users #330

Open
stanim opened this issue Jun 3, 2020 · 2 comments
Open

Make password expiration possible for all users #330

stanim opened this issue Jun 3, 2020 · 2 comments

Comments

@stanim
Copy link

stanim commented Jun 3, 2020

For our application we need password expiration for all users. In order to implement this we would introduce a new setting: ACCOUNT_PASSWORD_EXPIRY_SKIP (string) which would default to "staff" for backwards compatibility. Other values could be: "none" and "superuser". This would be coded in ExpiredPasswordMiddleware.

We could provide a pull request if the project is open to it. Let us know what you think.

@ekobayu
Copy link

ekobayu commented Jun 19, 2020

Hi @stanim , Sorry maybe I'm in wrong room, I want to ask about password expiry. I have been setup and followed instructions in here https://django-user-accounts.readthedocs.io/en/latest/usage.html#enabling-password-expiration

But nothing changes or happen when new register user have been signup. I have been setup account expiry in 60 seconds and nothing changes for password expiry.

Did I miss something ?

Thanks

@jonathan-s
Copy link
Contributor

@ekobayu Was it for a staff user, right now the middleware only works for staff users. @stanim I'd also add it's pretty easy to just switch out the middleware for a middleware that works for all users.

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

No branches or pull requests

3 participants