• Resolved bgbloke

    (@bgbloke)


    Hello,

    I am using the Profile Grid form the have people register to the course.

    After registration it is showing me a “Thanks for registering message” which is as intended.

    I have the setting in the user group set to “After Registration, Redirect to <Page>” … and although it is redirecting them to … in this case … the dashboard … it is not logging them in!

    Could you please offer some assistance? Can auto login be achieved?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello @bgbloke,

    Thank you for writing to us.

    Currently, ProfileGrid does not allow the auto-login on site, so if you redirect the user to a page after registration that requires the login, the user will be redirected to the login page. If you want your users to restrict using the dashboard login page, please disable the option “Allow Dashboard Login Page Access to Guests” and configure the login page (page with login shortcode ) for the option “Login Page” from “ProfileGrid >> Global Settings >> General” in the dashboard.

    You may use the integration of ProfileGrid with the RegistrationMagic plugin. This integration will allow your users to auto-login on site after registration.

    Let us know if you have any other questions.

    Thread Starter bgbloke

    (@bgbloke)

    Thank you for the response.

    I was using registration magic but when I saw that I could add custom fields to the form using your registration process (employment status, phone number etc.) I didn’t see a point in it. It also seemed that I couldn’t add the additional required fields using registration magic.

    Are you aware as to if it is possible to drag the fields created in profile grids registration process over?

    Thread Starter bgbloke

    (@bgbloke)

    I have found the below code which works for what I need it to do … but with one problem, it doesn’t save the registration form details before redirecting. The user is created, they get logged in straight away and get redirected to the chosen page. It’s just their registration details are not saved to the database .. i guess because this supersedes the profile grid functions.

    Might you be able to comment on a line that can be added to allow for profile grid to finish doing it’s thing and then redirect?

    —————————————————————

    // Auto Login after registration

    function auto_login_new_user( $user_id ) {
    wp_set_current_user($user_id);
    wp_set_auth_cookie($user_id);
    wp_redirect( ‘## ‘ ); // You can change home_url() to the specific URL,such as “wp_redirect( ‘https://www.wpcoke.com&#8217; )”;
    exit();
    }
    add_action( ‘user_register’, ‘auto_login_new_user’ );`

    Plugin Author ProfileGrid Support

    (@profilegrid0)

    Hello,

    You may use the RegistrationMagic registration form for a ProfiileGrid group registration and can map the RegistrationMagic form fields with ProfiileGrid group fields. Once you map the RegistrationMagic form field, the field value will display in user profile after registration and also users may edit the details later.

    For details on the integration of ProfileGrid with RegistrationMagic , please visit the link : https://profilegrid.co/profilegrid-registrationmagic-integration/

    Let us know if you have any other questions.

    Thread Starter bgbloke

    (@bgbloke)

    Thank you. While waiting for a response as to a way to achieve with code, I have tried registration magic and am testing the process now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Auto Login after registration’ is closed to new replies.