django-user-accounts icon indicating copy to clipboard operation
django-user-accounts copied to clipboard

Make password expiration possible for all users

Open stanim opened this issue 4 years ago • 2 comments

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.

stanim avatar Jun 03 '20 14:06 stanim

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

ekobayu avatar Jun 19 '20 02:06 ekobayu

@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.

jonathan-s avatar Jul 12 '21 09:07 jonathan-s