therecluse26 / PHP-Login

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

Password reset is not working #215

Open khanals opened 6 years ago

khanals commented 6 years ago

When I click on password reset email link then reset form appears but password doesn't change and nothing response shows

eljefe111 commented 6 years ago

Mine gives an error.

For some reason it's not finding the PHPLogin

resetformsubmit.php echos: Unknown error occured [AJ14440]

server error logs show:

PHP message: PHP Fatal error: Uncaught Error: Class 'PHPLogin' not found in /var/www/testsite/login/ajax/resetformsubmit.php:27 Stack trace:

0 {main}

thrown in /var/www/testsite/login/ajax/resetformsubmit.php on line 27" while reading response header from upstream, client: ::1, server: localhost, request: "POST //login/ajax/resetformsubmit.php HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "localhost", referrer: "http://localhost//login/resetpassword.php?t=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC9sb2NhbGhvc3RcLyIsIm5iZiI6MTUzNjg1ODMyMSwiZXhwIjoxNTM2OTQ0NzIxLCJ0b2tlbmlkIjoidF81YjlhOThjYzIyNDMzOC41ODU1NzI2NiIsInVzZXJpZCI6IjIwMzA2MjYzODQ1Yjk5YmJlMDFjZTI3IiwiZW1haWwiOiJqZWZmLmFnZWVAeWFob28uY29tIiwidXNlcm5hbWUiOiJlbGplZmUxMSIsInB3X3Jlc2V0IjoidHJ1ZSJ9.g91UvLcy0PNQNRnnSPRsu_v8j65up-XXpbFIjpS9C48"

eljefe111 commented 6 years ago

I altered one line in "resetformsubmit.php".

Changed:

$secret = PHPLogin\AppConfig::pullSetting("jwt_secret");

to:

$apconf = New PHPLogin\AppConfig;
$secret = $apconf::pullSetting("jwt_secret");

Solved all my errors above.

jtraceyProblem commented 5 years ago

I am having a problem with reset password form also. 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!