Skip to content

Commit 3db5b82

Browse files
authored
fix(users): Correct the condition for verify_email flow in decision manger (#4580)
1 parent c47cac8 commit 3db5b82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/router/src/types/domain/user/decision_manager.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl SPTFlow {
4242
Self::TOTP => Ok(true),
4343
// Main email APIs
4444
Self::AcceptInvitationFromEmail | Self::ResetPassword => Ok(true),
45-
Self::VerifyEmail => Ok(user.0.is_verified),
45+
Self::VerifyEmail => Ok(!user.0.is_verified),
4646
// Final Checks
4747
Self::ForceSetPassword => user.is_password_rotate_required(state),
4848
Self::MerchantSelect => user

0 commit comments

Comments
 (0)