08-24-2016, 07:39 AM
Just ran into a problem, by trying to login a user, which is not email_verified (Require User to Verify Their Email? is turned on in my case).
I was redirected to $us_url_root.'verify.php'. This site does not exist. verify.php is located in $us_url_root.'users/verify.php'
The reason in my case for this wrong redirection is that I changed the custom_login_script.php and instead of redirecting the user to $us_url_root.'users/account.php' I redirected the user to $us_url_root.'index.php'. Now this index.php calls. At the bottom of init.php it is checked if this logged in user is email_verified. If this user is not email_verified (as in my case) the user is redirected: . And because I changed the custom_login_script.php the user is not in the $us_url_root.'users' folder but in $us_url_root. So I had to change the redirection in init.php:
What I want to say is that one has to keep this in mind, if changes of the custom_login_script.php are made.
I was redirected to $us_url_root.'verify.php'. This site does not exist. verify.php is located in $us_url_root.'users/verify.php'
The reason in my case for this wrong redirection is that I changed the custom_login_script.php and instead of redirecting the user to $us_url_root.'users/account.php' I redirected the user to $us_url_root.'index.php'. Now this index.php calls
Code:
require_once 'users/init.php';
Code:
Redirect::to('verify.php');
Code:
Redirect::to('users/verify.php');
What I want to say is that one has to keep this in mind, if changes of the custom_login_script.php are made.