The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to set the page shown after the user login
#4
I'm sorry. It's in 4.4 but idk what happened to the setting in 4.3.
The easiest thing to do is to add a line to usersc/scripts/custom_login_script.php and just put Redirect::to('index.php');

Note that you can do conditional logic like

if(hasPerm([2],$user->data()->id)){ //admin
Redirect::to('admin.php);
}else{
Redirect::to('index.php');
}
  Reply


Messages In This Thread
RE: How to set the page shown after the user login - by mudmin - 01-18-2019, 01:37 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)