• Hello. i modified an issue into the wp-login.php and the reset password.

    However, with the next wp update, i think that my fix issue will be removed. I wondering so how to add into my theme this fix issue and being certain that during the next update it wont be removed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Most likely, are you okay with using a plugin or do you want to customise it completely yourself? https://www.ads-software.com/plugins/search/custom+login/

    Thread Starter okegima

    (@okegima)

    Hi. i do not need a plugin as it was just a fix issue with the reset password mail and cach. i solve it bye modifying a little code into the wp-login.php.

    however, am fearing that with the next wp update, the code will be over write. that why i need to creat a wp-login.php child file to be sure that it won’t overwrite it.

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    It will definitely erase on the next update, but can you give us more detail on what you changed?

    Thread Starter okegima

    (@okegima)

    Well in fact when i was requesting for a password reset or after an account creation to create the password, i was revived the mail with the link for reset/creat it. however, when i clicked on the link, i had an error as : “Your password reset link appears to be invalid. Please request a new link below.”
    here the link : <https://www.myweb.com/wp-login.php?action=rp&key=VWqyeXciUckwQdv3XftB&login=username&gt;
    However, when I was clicking on the link, the link was changing to : https://www.myweb.com/wp-login.php?action=lostpassword&error=invalidkey

    Has as read on web, it is a cache matter, and some webmail do not support it. as am on a mutualised server, i don’t have the end on the php/appach setting.

    So i searched for another way to solve it and i saw some one talking about this line into the wp-login.php : line 332 – $message .= ‘<‘ . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “>\r\n”;

    I knew that if i copy the link, and past it, it works, but if i click on the link directly, it do not works. so i removed the <> to see what’s happen. and, it worked !

    $message .= ” . network_site_url(“wp-login.php?action=rp&key=$key&login=” . rawurlencode($user_login), ‘login’) . “\r\n”;

    My matter now, is that as I modified a main file, and know that after each update it will be rewrite, am a bit lazy to rewrite this code after each update. That why i was wondering to how to creat a wp-login.php child file.

    Thread Starter okegima

    (@okegima)

    also happen into the /wp-includes/pluggable.php in line 1823 to user who creat new account and need to click on the link to creat the password after mail recive.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wp-login child’ is closed to new replies.