We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28f06e7 commit cefbbb5Copy full SHA for cefbbb5
py4web/utils/auth.py
@@ -805,7 +805,7 @@ def change_password(
805
}
806
807
if self.param.block_previous_password_num:
808
- past_pwds = (user.past_passwords_hash or [])[
+ past_pwds = user.get("past_passwords_hash", [])[
809
: self.param.block_previous_password_num
810
]
811
if any(new_pwd == old_pwd for old_pwd in past_pwds):
0 commit comments