Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GravityForms login issue #42

Open
aroberts91 opened this issue May 20, 2024 · 0 comments · May be fixed by #43
Open

GravityForms login issue #42

aroberts91 opened this issue May 20, 2024 · 0 comments · May be fixed by #43

Comments

@aroberts91
Copy link

I believe the Authentication logic may be causing a problem with Gravity forms user registration. The GF plugin checks for login errors before running some additional logic:

class-gf-user-registration.php @2495:

$sign_on = wp_signon(
				array(
					'user_login'    => $field_values['1'],
					'user_password' => $field_values['2'],
					'remember'      => $field_values['3_1'] == '1' ? true : false
				)
			);

			if ( is_wp_error( $sign_on ) ) {
			...

However, the logic never makes it past wp_signon because the UserAuthenticator throws an exception (WordpressLoginSuccessfulException) on success. This causes required filters to fail even though the user is logged in successfully.

Is there a workaround for this or can there be some solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant