Skip to content

GravityForms login issue #42

Description

@aroberts91

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions