Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
44c6ba32
Commit
44c6ba32
authored
Nov 09, 2005
by
Leigh B. Stoller
Browse files
Put a pointer to the KB entry about why change probably failed.
parent
5e77767f
Changes
1
Hide whitespace changes
Inline
Side-by-side
www/chpasswd.php3
View file @
44c6ba32
<?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
))
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment