paddy_fields Posted February 26, 2014 Share Posted February 26, 2014 Add $securityUser = $_POST['user_id'] to Rule 1 as well. Quote Link to comment https://forums.phpfreaks.com/topic/286301-password-reset-not-working/page/3/#findComment-1470729 Share on other sites More sharing options...
Solution paddy_fields Posted February 26, 2014 Solution Share Posted February 26, 2014 If it is just now a case that your link doesn't work (ie, it doesn't update the users password when clicked) then you should open a new thread as it is a new issue. Â You'll get more responses. Quote Link to comment https://forums.phpfreaks.com/topic/286301-password-reset-not-working/page/3/#findComment-1470730 Share on other sites More sharing options...
SalientAnimal Posted February 26, 2014 Author Share Posted February 26, 2014 (edited) Added $securityUser = $_POST['user_id'] to rule one as well, but still getting the notice.  Besides the above mentioned notice, there are still two problems: The new password isn't updated into the database The link doesn't work when copied and pasted into the address bar. Clicking it works (For this one I can open new thread).  What I am worried about though, is that once we've worked through all the errors, that I might get back to a point where the updated password doesn't work as I was having earlier. Edited February 26, 2014 by SalientAnimal Quote Link to comment https://forums.phpfreaks.com/topic/286301-password-reset-not-working/page/3/#findComment-1470734 Share on other sites More sharing options...
paddy_fields Posted February 26, 2014 Share Posted February 26, 2014 The password not updating in the database is to do with whatever page that link is sending you to, which is why I suggested a new thread. Â As for the link not working when copied into the address bar... why would you want to do that? It's just that the link isn't being built properly... it's text anchor is reffering to http://jhbvcstracking/ instead of your local directory. $passwordLink = "<a href=\"?a=recover&email=" . $security_key . "&u=" . urlencode(base64_encode($user_id)) . "\">http://jhbvcstracking/resetpwd.php?a=recover&email=" . $security_key . "&u=" . urlencode(base64_encode($user_id)) . "</a>"; I kmow it's probably not that helpful at this point, but you really should go back and try and learn som eof the basics here. Read up on POST and GET and just general HTML tags. The code you've found and are trying to implement is going to be a massive headache like this constantly if you don't vaguely understand what the logic is behind it Quote Link to comment https://forums.phpfreaks.com/topic/286301-password-reset-not-working/page/3/#findComment-1470736 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.