Commit 44c6ba32 authored by Leigh B. Stoller's avatar Leigh B. Stoller

Put a pointer to the KB entry about why change probably failed.

parent 5e77767f
<?php
#
# EMULAB-COPYRIGHT
# Copyright (c) 2000-2003 University of Utah and the Flux Group.
# Copyright (c) 2000-2003, 2005 University of Utah and the Flux Group.
# All rights reserved.
#
include("defs.php3");
......@@ -18,6 +18,16 @@ $keyB = $_REQUEST['key'];
# We also need the other half of the key from the browser.
$keyA = $HTTP_COOKIE_VARS[$TBAUTHCOOKIE];
# If the browser part is missing, direct user to answer
if ((isset($keyB) && $keyB != "") && (!isset($keyA) || $keyA == "")) {
PAGEHEADER("Reset Your Password", $view);
USERERROR("Oops, not able to proceed!<br>".
"Please read this ".
"<a href='kb-show.php3?xref_tag=forgotpassword'>".
"Knowledge Base Entry</a> to see what the likely cause is.", 1);
}
if (!isset($reset_uid) || $reset_uid == "" || !TBvalid_uid($reset_uid) ||
!isset($keyA) || $keyA == "" || !preg_match("/^[\w]+$/", $keyA) ||
!isset($keyB) || $keyB == "" || !preg_match("/^[\w]+$/", $keyB)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment