The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (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
Config homepage?
#1
HI, I'm trying to change the page-after-login.
I'm working on 4.2.11 (*)

I've read in users/login.php about a "Config::get('homepage')" but I didn't find where to set it.

Alternativley, I've tryed to modify the custom_login_script.php, to add an admin-related logic: dashboard for admin and my application home for standard users, with no success.


(*) I'm trying to get a stable-beta-version of my own project. After that, I'll try to port my "Validity Time" addon on latest github version. But I'm also new with git, and so it will be a long, slow process... Sad

Thanks!!
  Reply
#2
Changing custom_login_script should work...

The logic is:
-Redirect to destination if defined (trying to access a secured page but not logged in)
-Do anything in custom_login_script
-If still on login.php, redirect to account.php.
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)