Skip to content

Commit 78fb877

Browse files
abhinavk96iamareebjamal
authored andcommitted
feat: verify unverified user if he resets password (#6254)
1 parent 3c747b0 commit 78fb877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/api/auth.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ def reset_password_patch():
278278
return NotFoundError({'source': ''}, 'User Not Found').respond()
279279
else:
280280
user.password = password
281-
if user.was_registered_with_order:
281+
if not user.is_verified:
282282
user.is_verified = True
283283
save_to_db(user)
284284

0 commit comments

Comments
 (0)