summaryrefslogtreecommitdiff
path: root/htdocs/moderate
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-06-03 11:08:08 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-06-03 11:08:08 -0700
commit3ee5add5b0ba1550f4a153ff44775e8dd33d99ea (patch)
tree7989b84a73cc4c20dd9297ed25a6e723304349d2 /htdocs/moderate
parent58e702ff5a328eb704d29da985863a646a193331 (diff)
Emailing moderation passwords
Diffstat (limited to 'htdocs/moderate')
-rw-r--r--htdocs/moderate/users/editor.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/htdocs/moderate/users/editor.php b/htdocs/moderate/users/editor.php
index c44928f..54befc7 100644
--- a/htdocs/moderate/users/editor.php
+++ b/htdocs/moderate/users/editor.php
@@ -58,6 +58,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
$notify = isset($_POST['notify']) and $_POST['notify'] == '1';
$user->setNotify($notify);
+ // Send new password
+ if (isset($_POST['newpass']) and $_POST['newpass'] == '1') {
+ $user->sendNewPassword();
+ }
+
// Save the user
if ($error == '') {
if ($user->save()) {
@@ -98,6 +103,13 @@ Administrator</label></p>
<input type="checkbox" name="notify" value="1" <?= $user->getNotify() ? 'checked="checked"' : '' ?> />
Notify of posts</label></p>
+<?php
+ if (isset($_GET['id'])) {
+ echo "<p><label><input type=\"checkbox\" name=\"newpass\" value=\"1\" />"
+ . "Send new password</label></p>";
+ }
+?>
+
<p>
<input type="submit" class="bigbutton" value="Save" />
<a href="index.php" class="bigbutton">Cancel</a>