From 3ee5add5b0ba1550f4a153ff44775e8dd33d99ea Mon Sep 17 00:00:00 2001 From: Jesse Morgan Date: Fri, 3 Jun 2011 11:08:08 -0700 Subject: Emailing moderation passwords --- htdocs/moderate/users/editor.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'htdocs/moderate/users') 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

getNotify() ? 'checked="checked"' : '' ?> /> Notify of posts

+

"; + } +?> +

Cancel -- cgit v1.2.3