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