Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Changing sample login page to redirect to WEB_ROOT rather than /.

  • Loading branch information...
commit 6cc9e4ae30edd88f81b05f316670e93aaa8e3eda 1 parent e444a47
@tylerhall authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 login.php
View
4 login.php
@@ -1,7 +1,7 @@
<?PHP
require 'includes/master.inc.php';
- if($Auth->loggedIn()) redirect('/');
+ if($Auth->loggedIn()) redirect(WEB_ROOT);
if(!empty($_POST['username']))
{
@@ -10,7 +10,7 @@
if(isset($_REQUEST['r']) && strlen($_REQUEST['r']) > 0)
redirect($_REQUEST['r']);
else
- redirect('/');
+ redirect(WEB_ROOT);
}
else
$Error->add('username', "We're sorry, you have entered an incorrect username and password. Please try again.");
Please sign in to comment.
Something went wrong with that request. Please try again.