Commit 9e4660e
authored
feat: add ability to require strong passwords (ietf-tools#8828)
* feat: enforce pw strength at login
* chore(deps): add zxcvbn to requirements.txt
* feat: use zxcvbn for password strength check
* feat: validate password strength for setting pw
* feat: feedback on password change page
* refactor: avoid field validator munging
* feat: give more info about how to choose a pw
* refactor: use password_validation module
Only for changing password so; may need to update StrongPasswordAuthenticationForm to match
* feat: password min_length validdation
* refactor: use password_validation for login form
* fix: UI feedback consistent with validation
* chore: update chpw page to state length req
* chore(dev): disable password validators in dev
* fix: drop JS validation when password val disabled
* style: ruff on ChangePasswordForm
* chore: lint
* chore(dev): preserve pw validator cfg for tests
* test: fix test_change_password
* test: fix test_change_username
* test: fix test_reset_password
* style: ruff refactored tests
* chore: type lint
* feat: require pw reset for very stale accounts
* test: test stale account login
* test: rejection of short/simple PWs
* Revert "test: test stale account login"
This reverts commit ae0d90b.
* Revert "feat: require pw reset for very stale accounts"
This reverts commit 1a98ef4.
* test: disable pw validators for playwright legacy tests
* feat: make pw enforcement at login optional1 parent ecc4786 commit 9e4660e
11 files changed
Lines changed: 321 additions & 105 deletions
File tree
- ietf
- ietfauth
- static/js
- templates/registration
- k8s
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
6 | 7 | | |
7 | 8 | | |
8 | 9 | | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | | - | |
12 | 14 | | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | 176 | | |
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
184 | 193 | | |
185 | 194 | | |
186 | 195 | | |
187 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
188 | 206 | | |
189 | 207 | | |
190 | | - | |
| 208 | + | |
| 209 | + | |
191 | 210 | | |
192 | | - | |
| 211 | + | |
193 | 212 | | |
194 | | - | |
| 213 | + | |
195 | 214 | | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
200 | 222 | | |
201 | 223 | | |
202 | 224 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
0 commit comments