Commit b6bfe48d authored by Leigh Stoller's avatar Leigh Stoller

Fix a couple of nits. This closes issue #203.

parent 557f3504
......@@ -90,6 +90,7 @@ function Do_ChangePassword()
return;
}
$formfields = $ajax_args["formfields"];
$this_uid = $this_user->uid();
$target_uid = $target_user->uid();
if (isset($formfields["key"])) {
......@@ -164,7 +165,7 @@ function Do_ChangePassword()
SUEXEC_ACTION_CONTINUE);
}
else {
$retval = SUEXEC($target_uid, "nobody",
$retval = SUEXEC($this_uid, "nobody",
"webtbacct passwd $target_uid $safe_encoding",
SUEXEC_ACTION_CONTINUE);
}
......
......@@ -7,7 +7,7 @@
<div class='panel panel-default'>
<div class='panel-heading'>
<h3 class='panel-title'>
<center>Change Your Password</center></h3>
<center>Change Password for user '<%- user %>'</center></h3>
</div>
<div class='panel-body'>
<% if (needold) { %>
......@@ -24,7 +24,7 @@
value=''
data-key="password1"
class='form-control format-me'
placeholder='Your new password'
placeholder='New password'
type='password'>
</div>
<div class="form-group">
......@@ -55,7 +55,7 @@
<div class='modal-body'>
<button type='button' class='close' data-dismiss='modal'
aria-hidden='true'>&times;</button>
<center><h4>Your password has been changed</h4></center>
<center><h4>Password sucessfully changed</h4></center>
</div>
</div>
</div>
......
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