The JavaScript function setTimeout is often used on Ajax calls for user experience only. If the button has no loading step for at least 1 second, users might think that nothing happened!
Check your password with setTimeout:
Check your password without setTimeout:
There are several way to check if an Ajax call has an PHP Error. Check the web server logs, or display the data returned by the call Ajax in an alert or in console.log. Of course, display of PHP errors must be set to 1 in config.inc.php:
If you get an Internal server error instead of PHP errors in page, your php.ini file must set display_errors to on:
You are not connected. Please connect to test this Ajax call.
This link to Login page contains a rediretion to get back to this page after login: