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>
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.