Skip to content

Commit

Permalink
Merge PR #690 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by moylop260
  • Loading branch information
OCA-git-bot committed Sep 18, 2024
2 parents d0b241e + 50dfe7f commit 23138c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions password_security/models/res_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def _validate_pass_reset(self):
if pass_min <= 0:
continue
write_date = user.password_write_date
if not write_date:
continue
delta = timedelta(hours=pass_min)
if write_date + delta > datetime.now():
raise UserError(
Expand Down

0 comments on commit 23138c1

Please sign in to comment.