Permalink
Browse files

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

  • Loading branch information...
1 parent e444a47 commit 6cc9e4ae30edd88f81b05f316670e93aaa8e3eda @tylerhall committed Dec 10, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 login.php
View
@@ -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.");

0 comments on commit 6cc9e4a

Please sign in to comment.