Skip to content

Commit 23138c1

Browse files
committed
Merge PR OCA#690 into 16.0
Signed-off-by moylop260
2 parents d0b241e + 50dfe7f commit 23138c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

password_security/models/res_users.py

+2
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ def _validate_pass_reset(self):
144144
if pass_min <= 0:
145145
continue
146146
write_date = user.password_write_date
147+
if not write_date:
148+
continue
147149
delta = timedelta(hours=pass_min)
148150
if write_date + delta > datetime.now():
149151
raise UserError(

0 commit comments

Comments
 (0)