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
Redirect Problem after login
#2
Seems to me, the simplest way to fix that would be to do one of two things...

1. Go into the admin panel and mark http://www.mydomain.net/client_files/index.php as private as private and only give access to logged in users...that will redirect them to your true homepage (which I'm guessing is http://www.mydomain.net).

2. If that http://www.mydomain.net/client_files/index.php is actually your root userspice index.php, then I would do something like this on your index.php page...
Code:
if(!$user->isLoggedIn()){
Code:
Redirect::to('users/login.php');
Code:
}

That should redirect anyone who tries to go to that index.php page without being logged in right to the login page.

  Reply


Messages In This Thread
Redirect Problem after login - by Steve_Dickson - 11-20-2016, 05:51 PM
Redirect Problem after login - by mudmin - 11-20-2016, 06:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)