Forums

How to skip email verification after register and log you right in (5 posts)

  1. Zambrano Sergio
    Blocked
    Posted 2 years ago #

    I'd like to skip email verification, so I can allow my visitors log-in into the site (to download files) WITHOUT having to retrieve their password. (they could do it later)

    I need them to register to the blog through wp registration, and not to login through an openID or other type of login, because I want to feature their gravatars in the site like a community.

    I have e piece of code that logs you in right into the blog with the specified user acct. I think it can be fed with the just generated user and pass and putting it into the right place after the register process, it could work. But I don't know where to put it (I'm looking for it right now!)

    require('/home/content/xx/xxxxxx/html/wp-blog-header.php');
    $user_login = 'generated_used_here';
    $user = get_userdatabylogin($user_login);
    $user_id = $user->ID;
    wp_set_current_user($user_id, $user_login);
    wp_set_auth_cookie($user_id);
    do_action('wp_login', $user_login);

    Help please!

  2. MichaelH
    Volunteer
    Posted 2 years ago #

  3. Zambrano Sergio
    Blocked
    Posted 2 years ago #

    If MichaelH is an automated system… please let us know!

    People could get here and not to help because they think you answered a very complete set of options… and honestly I think MichaelH hasn't even read my post.

    1. I need users to DOWNLOAD images only after (quick) registered, not upload.
    2. All the plugins you suggest for "submit post not logged in" are just for that: "POSTING", not for skipping a VISITOR registration email verification. CForms doesn't even fit into that category. It's a form builder/processor/manager.

    "A different approach" sounds like "let me sell you something in stock"

  4. MichaelH
    Volunteer
    Posted 2 years ago #

    Not a robot. Selling nothing. Missed the download--mistaken for 'upload'. Will take your comments under serious consideration. Thanks.

  5. Zambrano Sergio
    Blocked
    Posted 2 years ago #

    I'm sorry. It happened to me before: no relevancy in the "quick" moderator answer, and not sure if was you. Thank you for listening.

Topic Closed

This topic has been closed to new replies.

About this Topic