The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
custom login redirect is skipped because of login.php?dest=index.php - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28) +--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29) +--- Thread: custom login redirect is skipped because of login.php?dest=index.php (/showthread.php?tid=428) |
custom login redirect is skipped because of login.php?dest=index.php - emanresu - 01-16-2017 Hi again, I've been trying to change the redirection in the login script. So on first login the user is directed to user_settings.php instead of index.php But if $dest is set, it seems to skip custom_login_script.php. And whenever no one is logged in, the user is always redirected to login.php with destination login.php?dest=index.php. I've been looking to remove the automatic redirection of $dest, but I fail to see where this part of the URL is created. So if I'm not logged in and go to my "domain.com/userspice/" it willl auto redirect to "domain.com/userspice/users/login.php?dest=index.php" and custom_login fails to load and the user is redirected to index.php if I go to "domain.com/userspice/users/login.php" everything is fine, and on first login I'm redirected to user_settings.php custom login redirect is skipped because of login.php?dest=index.php - mudmin - 01-16-2017 Hmm. That's obviously a bug. I'm not in front of my code, but I'm almost positive that would be in users/classes/User.php where that would be happening. I'll take a look. custom login redirect is skipped because of login.php?dest=index.php - emanresu - 01-16-2017 I guess this function is responsible? version 4.1 -> Line 149 <pre> Code: public function notLoggedInRedirect($location){ Not sure though, I'm still getting familiar with UserSpice... I'll just wait for when you find the time to take a look. |