• Resolved Imogene Dent

    (@fontellacosmetics)


    The plugin was working, and now it stopped, every time i try to create a temporary password it tells me not a valid email, its the same email ive been using. Please help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hi,

    Sorry for the inconvenience you had.

    Can you please share the screenshot of an error message?

    If user is already registered in your system, temporary login won’t be created with the same email. You need to use different email address to create a temporary login.

    Hope that helps.

    Hi,

    Any update on this? Did you check?

    Hi, thank you for your hard work on this plugin. Can i remove it, that i do not have to enter an email adress for every temp login? i need to create hundreds of temp logins, but dont want to enter hundreds of different email adresses.

    thanking you

    Tom

    Hi Tom, I have a similar problem.
    WordPress does not want you to use the same email more than once.
    To circumvent this, in made a small change in the TLWP plugin. In the file
    admin/class-wp-temporary-login-without-password-admin.php
    in the function
    public function create_user()
    I commented out these lines:

    //		} elseif ( ! empty( $data['user_email'] ) && email_exists( $data['user_email'] ) ) {	// emanaku allow tmp logins for same person
    //			$result['message'] = 'email_is_in_use';	 

    This removes the check of TLWP if the email exists.
    Now I can create as many temporary logins with the same email address as I want to.
    Caveat: When the plugin updates, your change gets lost!

    Good luck!
    Emanáku.

    Hi Emanaku,

    thank you very much for your help… exactly what i needed.. but… I get an error message:

    “User creation failed”

    Cheers

    • This reply was modified 4 years, 6 months ago by thobau.

    no luck… what do i wrong?

    doesnt work

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Tempr]orary login without password’ is closed to new replies.