Magento 2 login is not working as expected on my centos 7 server. If i enter wrong credentials into the login form and hit submit, the page refreshes and the following happens:
1. No error message is returned
2. The form clears off the inputted login credentials.
3. Customer is not logged in even if the credentials are correct.
I went further to install a fresh Magento 2.2.6 on the same server. I tried to login as a customer, even though I did not register. I expected to get an error feedback but I got the same result as above.
Please note that admin backend login is working fine.
Things I have done
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
php bin/magento cache:clean
I have also made the following folders writable: generated, var/*, pub/static
I need your help as I have been on this for 3 days. Thanks in anticipation.
Issue has been resolved
I noticed a timezone difference between the database server and application server. I sync the two and it worked.