Password Reset Error With New Login Path?


  • M Tissera
    Newbie 7 points
    September 13, 2016 at 3:17 am

    Hello friends!
    Please look at the below image & tell me how can I fix this issue, when Reset Password with new login Path?

    example.com/new-login/

    		// ADD LOG ENTRY AND REDIRECT USER
    		if ( !is_wp_error($errors) ) {
    			$CORE->ADDLOG("<a href='(ulink)'>".$_POST['user_login'].'</a> forgot their password.', '','','label-inverse');		
    			wp_redirect('wp-login.php?checkemail=confirm');
    			exit();

    Appreciate. Thanks!

    Attachments:
    You must be logged in to view attached files.
  • JamesD
    JamesD
    Super Guru 1,491 points
    September 13, 2016 at 11:51 pm

    Hello M Tissera,

    Not sure if this is what you’re looking for, but the WP method ‘wp_lostpassword_url()‘ should return the lostpassword url.
    The above link has examples and detailed explanation on it.

  • JamesD
    JamesD
    Super Guru 1,491 points
    September 14, 2016 at 1:28 am

    One other thing to note… if you’re trying to redo the login of things in general yourself, then you may find it to be a little more involved that what you anticipated.

    If this is the case, then you may want to consider a good plugin to handle the tedious details. One plugin that comes to mind is the “Move Login” plugin. I haven’t had any problems with it and it does greatly simplify the process. I’m sure there are others available to check out too.

    Hope this helps.

    This reply was awarded the best answer by the topic poster.

  • M Tissera
    Newbie 7 points
    September 14, 2016 at 3:32 am

    Hello James!

    It’s occurred with HTTPS (SSL) redirect & Cloudflare system. Have Solved the issue, when configure well.
    Thank you for your solutions too!

Viewing 4 posts - 1 through 4 (of 4 total)

New Business Themes for WordPress 2020

Start your new website today!

View Business Themes