Skip to content

Password expiration - #223

Merged
brosner merged 7 commits into
masterfrom
password-expiration
Sep 9, 2016
Merged

brosner merged 7 commits into
masterfrom
password-expiration

Conversation

@grahamu

@grahamu grahamu commented Sep 2, 2016

Copy link
Copy Markdown
Contributor

Adds password expiration capability.
Adds password history.
Allows per-user setting of password expiration as well as global expiry value.
Permits disabling password history feature.
Permits specifying "no expiration".
Checks password expiration on each login. Does not check password expiration on each request.

Password history will allow password validation which enforces "cannot use old passwords" rule and other cases.

Needs tests.

Bring common code into PasswordChangeMixin.
Update views to save password upon signup, change pw, or reset pw.
Update LoginView to check for expired password.

Added ACCOUNT_PASSWORD_USE_HISTORY (True/False) for determining whether
or not to check password expiration.

Added ACCOUNT_PASSWORD_EXPIRY (positive int) for number of seconds until
password expires from last time it was set.
@coveralls

coveralls commented Sep 2, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.5%) to 68.46% when pulling 3635946 on password-expiration into b2691a6 on master.

Add makemigrations.py.
@paltman

paltman commented Sep 9, 2016

Copy link
Copy Markdown
Contributor

@brosner can we get your feedback on this, pretty please?

@coveralls

coveralls commented Sep 9, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.03%) to 68.984% when pulling a7a58eb on password-expiration into b2691a6 on master.

Add Django v1.10 to test matrix.
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.3%) to 69.283% when pulling 76ced62 on password-expiration into b2691a6 on master.

2 similar comments
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.3%) to 69.283% when pulling 76ced62 on password-expiration into b2691a6 on master.

@coveralls

coveralls commented Sep 9, 2016

Copy link
Copy Markdown

Coverage Status

Coverage increased (+1.3%) to 69.283% when pulling 76ced62 on password-expiration into b2691a6 on master.

@grahamu grahamu changed the title WIP - Password expiration Password expiration Sep 9, 2016
@brosner

brosner commented Sep 9, 2016

Copy link
Copy Markdown
Member

LGTM. Going to merge.

@brosner
brosner merged commit 384476a into master Sep 9, 2016
@brosner
brosner deleted the password-expiration branch September 9, 2016 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants