• Resolved GB Design Studio

    (@gb-design-studio)


    When a user registers on our website, he/she can access all shop content without the need for approval first by admin? Surely there is something wrong here??

    Please advice.

    Thanks

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Support A.Tariq

    (@arsalantariq)

    Hi @gb-design-studio,

    Thank you for contacting us,

    I hope you are doing well, We are checking this issue and we will keep you updated on this.

    Thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    HI @gb-design-studio,

    Thanks for using the plugin, We have checked the issue, Guest Users can access shop content and products or pages. Do you want the approved users to see the products?

    thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    Let us know if you have any questions.

    Thread Starter GB Design Studio

    (@gb-design-studio)

    Hi Thanks for your reply and much appreciated.

    The email link you sent to download the fixed updated plugin does not work (link does not work) Please could you send link again to the updated plugin, as we see your plugin here was not updated until 2 weeks ago.

    We need to approve ANY user that signs up for an account, before they can access our shop content.

    Thanks

    Gary

    Thread Starter GB Design Studio

    (@gb-design-studio)

    This is exactly the point we require for what you say the plugin achieves:

    “Until the user is approved, they will not be able to login to the site.”

    However, when a user signs up on our website they are approved instantly and can gain access to the shop instantly.

    We need to approve the user FIRST before they can gain access and your current version 2.0 does not achieve this?

    Thanks
    Gary

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @gb-design-studio,

    Are you using any registration related plugins?

    Thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @gb-design-studio,

    We haven’t heard from you so we’re going to mark this thread as resolved. Feel free to open a new one if you need.

    I am having the same issue.
    I just installed the plugin and tried registering a new user. I was then able to comment and post on bbpress even before I was approved.
    But if I log out, it no longer allows me to log back in – it says “Your account is still pending approval.”

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @devpaq,

    We have forwarded the details to the QA team, and we will get back to you shortly.

    Thanks

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @devpaq, @gb-design-studio,

    Thanks for your patience,

    We are unable to replicate the mentioned issue. Are you are using any registration-related plugins.

    Thanks

    Yes, we are using ultimate member

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @devpaq, @gb-design-studio,

    There are no filters to disable the auto-login users after the registration process using Ultimate member. We need to log out users and redirect to any custom URL after registration.
    Kindly paste the below code in your child themes functions.php file and let us know if it works or not.

    add_action('um_registration_after_auto_login', 'nua_um_disable_auto_login');
    
    function nua_um_disable_auto_login($user_id) {
    
    	if( !empty($user_id) && is_user_logged_in() ) {
    			wp_destroy_current_session();
    			wp_clear_auth_cookie();
    			wp_set_current_user( 0 );   
    	}
    }
    
    add_action('um_after_form_fields', 'nua_um_redirect_to_after_registration');
    
    function nua_um_redirect_to_after_registration() {
    
    	$redirect_after_registration = 'https://example.com';
    	?>
    	<input type="hidden" name="redirect_to" value="<?php echo $redirect_after_registration; ?>">
    	<?php
    }

    You can change the redirection URL in the $redirect_after_registration variable.

    Thanks

    Thank you, I appreciate your help.
    I added the code to the function, but I was still able to post right after registering.

    Plugin Support A.Tariq

    (@arsalantariq)

    Hi @devpaq,

    You need to contact ‘Ultimate member’ support for a way to disable auto-login after registration. The issue is happening because ‘Ultimate member’ auto-login the user after registration

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘user registers and gains access without approval?’ is closed to new replies.