mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 20:55:55 +00:00
center and rework some utility screens
This commit is contained in:
@@ -283,35 +283,35 @@ class Pref_Users extends Handler_Protected {
|
||||
$sth->execute([$pwd_hash, $new_salt, $uid]);
|
||||
|
||||
if ($show_password) {
|
||||
print T_sprintf("Changed password of user %s to %s", $login, $tmp_user_pwd);
|
||||
print_notice(T_sprintf("Changed password of user %s to %s", $login, $tmp_user_pwd));
|
||||
} else {
|
||||
print_notice(T_sprintf("Sending new password of user %s to %s", $login, $email));
|
||||
}
|
||||
|
||||
if ($email) {
|
||||
require_once "lib/MiniTemplator.class.php";
|
||||
if ($email) {
|
||||
require_once "lib/MiniTemplator.class.php";
|
||||
|
||||
$tpl = new MiniTemplator;
|
||||
$tpl = new MiniTemplator;
|
||||
|
||||
$tpl->readTemplateFromFile("templates/resetpass_template.txt");
|
||||
$tpl->readTemplateFromFile("templates/resetpass_template.txt");
|
||||
|
||||
$tpl->setVariable('LOGIN', $login);
|
||||
$tpl->setVariable('NEWPASS', $tmp_user_pwd);
|
||||
$tpl->setVariable('LOGIN', $login);
|
||||
$tpl->setVariable('NEWPASS', $tmp_user_pwd);
|
||||
|
||||
$tpl->addBlock('message');
|
||||
$tpl->addBlock('message');
|
||||
|
||||
$message = "";
|
||||
$message = "";
|
||||
|
||||
$tpl->generateOutputToString($message);
|
||||
$tpl->generateOutputToString($message);
|
||||
|
||||
$mailer = new Mailer();
|
||||
$mailer = new Mailer();
|
||||
|
||||
$rc = $mailer->mail(["to_name" => $login,
|
||||
"to_address" => $email,
|
||||
"subject" => __("[tt-rss] Password change notification"),
|
||||
"message" => $message]);
|
||||
$rc = $mailer->mail(["to_name" => $login,
|
||||
"to_address" => $email,
|
||||
"subject" => __("[tt-rss] Password change notification"),
|
||||
"message" => $message]);
|
||||
|
||||
if (!$rc) print_error($mailer->error());
|
||||
if (!$rc) print_error($mailer->error());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user