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
/printthread.php 16 require_once



UserSpice
User login - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23)
+--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26)
+--- Thread: User login (/showthread.php?tid=1133)



User login - eforbes - 09-03-2018

I want the login page to be my landing page.  If I copy the login.php file to the root and rename it index.php would that be safe or should I redirect to the login.php in the 'users' folder?


RE: User login - usamusa - 09-03-2018

(09-03-2018, 02:50 PM)eforbes Wrote: I want the login page to be my landing page.  If I copy the login.php file to the root and rename it index.php would that be safe or should I redirect to the login.php in the 'users' folder?

I think a redirect would be easier
Code:
if(!$user->isLoggedIn()){Redirect::to('users/login.php');}



RE: User login - eforbes - 09-03-2018

(09-03-2018, 03:12 PM)usamusa Wrote:
(09-03-2018, 02:50 PM)eforbes Wrote: I want the login page to be my landing page.  If I copy the login.php file to the root and rename it index.php would that be safe or should I redirect to the login.php in the 'users' folder?

I think a redirect would be easier
Code:
if(!$user->isLoggedIn()){Redirect::to('users/login.php');}


Thanks usamusa.