Skip to content

Commit

Permalink
fix: login only flow hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
affrncsp committed Apr 23, 2024
1 parent eb5ba87 commit 6db8071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wp-affinidi-login-callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
$user_id = null;

if (email_exists($userInfo['email']) == false) {
if (affinidi_login_users_can_signup()) {
if (affinidi_login_users_can_signup() == 0) {
wp_safe_redirect(add_query_arg(array('message' => 'affinidi_login_only'), esc_url($user_redirect)));
exit;
}
Expand Down

0 comments on commit 6db8071

Please sign in to comment.