Undocumented
Class |
|
Validate that the password is not a common password. |
Class |
|
Validate that the password is of a minimum length. |
Class |
|
Validate that the password is not entirely numeric. |
Class |
|
Validate that the password is sufficiently different from the user's attributes. |
Function | exceeds |
Test that value is within a reasonable range of password. |
Function | get |
Undocumented |
Function | get |
Undocumented |
Function | password |
Inform all validators that have implemented a password_changed() method that the password has been changed. |
Function | password |
Return a list of all help texts of all configured validators. |
Function | validate |
Validate that the password meets all validator requirements. |
Variable | password |
Undocumented |
Function | _password |
Return an HTML string with all help texts of all configured validators in an <ul>. |
Test that value is within a reasonable range of password. The following ratio calculations are based on testing SequenceMatcher like this: for i in range(0,6): print(10**i, SequenceMatcher(a='A', b='A'*(10**i)).quick_ratio()) which yields: 1 1.0 10 0.18181818181818182 100 0.019801980198019802 1000 0.001998001998001998 10000 0.00019998000199980003 100000 1.999980000199998e-05 This means a length_ratio of 10 should never yield a similarity higher than 0.2, for 100 this is down to 0.02 and for 1000 it is 0.002. This can be calculated via 2 / length_ratio. As a result we avoid the potentially expensive sequence matching.
Inform all validators that have implemented a password_changed() method that the password has been changed.