therecluse26 / PHP-Login

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

Cannot login as new user other than admin #220

Open CLEMENTJOHNSHAJI opened 5 years ago

CLEMENTJOHNSHAJI commented 5 years ago

Hi, I had successfully setup the project and was able to login as an admin. When I create a new user I am getting a success message like “Thank you for signing up! You will receive an email shortly confirming the verification of your account.” But when I try to login as an user I got the following message. "Your account has been created, but you cannot log in until it has been verified". Every user is created in my Database, but the validation is not functioning properly (no verification mail is received) and the result is not updated correctly in Database. So I can’t login as any user other than Admin. error2 error21

I would like to work on this issue. Can i work on this?

Also, Other than settings related issues, found some version related issues (mentioned in following picture) like the following on the code. error_print

mattish91 commented 5 years ago

Well, is your email settings setup correctly?

Do you recive that verification email?

What happens when you click the link in your verification email?

There is other ways to verify users than just the email, you can verify them manually in the users section under "Manage Users".

I would most likely think that you didn't verify the account before loging in, thats why you get that message.

atharvaunde commented 5 years ago

Hey @CLEMENTJOHNSHAJI There might be issue with xampp server ! I deployed on a Ubuntu server and it is working fine. Check ur mail configuration (specially the mail server). Mails take some time to get into inbox! also check ur spam box! I used my gmail account to do the mail stuff and mails land into inbox perfectly!

budiony commented 5 years ago

I have had similar problem, but it was just settings of the mail server itself. You should check the database table app_config and look for settings mail_server, mail_host, mail_user, etc. and change the values with proper ones. This login system relies on PHPMailer class and uses SMTP authentication for sending emails (look at file mailhandler.php).

For example mail_port in app_config database table should be 587 if mail_security setting is tls.

Also, if you are developing under windows (as I am doing), keep in mind that xampp settings for mail server should be correct in "fake" sendmail app.

As fail-over option you can always manually validate users in section Admin->Manage users.

mfurkan60 commented 3 years ago

Hi, in my opinion SMTP problem . you should check the xammp or wammp server.