therecluse26 / PHP-Login

A login system built with PHP, MySQL, jQuery and Bootstrap
MIT License
839 stars 444 forks source link

Reset password button not working. #218

Open jtraceyProblem opened 5 years ago

jtraceyProblem commented 5 years ago

I am having a problem with reset password form. When I click "reset" nothing happens. Nothing. I don't get any errors or anything. Could really use some help with this. I have a fresh build here: http://www.myinkstories.com/test/

Thank You!

atharvaunde commented 5 years ago

Looks like u have issue in ur mailer settings.I made a new account but didn't received mail for verification. Login as Super Admin and recheck ur mail configuration (Specially mail server) under site configuration page

atharvaunde commented 5 years ago

Looks like u have issue in ur mailer settings.I made a new account but didn't received mail for verification. Login as Super Admin and recheck ur mail configuration (Specially mail server) under site configuration page

Update 1 ; Got mail for verification but password reset is broken ! same issue in my build also

budiony commented 5 years ago

The problem is with this line of code in file /login/ajax/resetformsubmit.php on line 26:

$config = PHPLogin::pullMultiSettings(array("password_policy_enforce", "password_min_length", "signup_thanks", "base_url")); This produces Fatal error: Uncaught Error: Class 'PHPLogin' not found in...

Replace this line with the line bellow:

$config = PHPLogin\AppConfig::pullMultiSettings(array("password_policy_enforce", "password_min_length", "signup_thanks", "base_url"));

jtraceyProblem commented 5 years ago

Sorry but that did not fix anything. When you click on the "Reset" button on login/resetpassword.php nothing happens. I saw where you were in the system and added a user. Did you try to reset the password for that user? Try that and you will see what is happening.

oh and thank you so much for the time you are spending on this. I'm honored.

atharvaunde commented 5 years ago

@jtraceyProblem I just made changes suggested by @budiony and it is working perfectly fine now. I made new user and via password reset page i requested a lick , added new password form and it got changed !

Thanks a lot @budiony for bug fix! Definitely u should do a Pull request