Skip to content
Snippets Groups Projects
Commit 69cdc7b8 authored by Jared Hancock's avatar Jared Hancock
Browse files

pwreset: Display pwreset page as a failsafe

parent 34273d37
No related branches found
No related tags found
No related merge requests found
......@@ -45,6 +45,7 @@ if($_POST) {
}
elseif ($_GET['token']) {
$banner = 'Re-enter your username or email';
$inc = 'pwreset.login.php';
$_config = new Config('pwreset');
if (($id = $_config->get($_GET['token']))
&& ($acct = ClientAccount::lookup(array('user_id'=>$id)))) {
......@@ -64,9 +65,6 @@ elseif ($_GET['token']) {
Http::redirect('account.php?confirmed');
}
}
else {
$inc = 'pwreset.login.php';
}
}
elseif ($id && ($user = User::lookup($id)))
$inc = 'pwreset.create.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment