mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 05:15:55 +00:00
update utility.css related stuff some more
This commit is contained in:
@@ -740,17 +740,17 @@ class Handler_Public extends Handler {
|
||||
<body id='forgotpass'>";
|
||||
|
||||
print '<div class="floatingLogo"><img src="images/logo_small.png"></div>';
|
||||
print "<h1>".__("Reset password")."</h1>";
|
||||
print "<h1>".__("Password recovery")."</h1>";
|
||||
print "<div class='content'>";
|
||||
|
||||
print "<p>".__("You will need to provide valid account name and email. New password will be sent on your email address.")."</p>";
|
||||
|
||||
@$method = $_POST['method'];
|
||||
|
||||
if (!$method) {
|
||||
$secretkey = uniqid();
|
||||
$_SESSION["secretkey"] = $secretkey;
|
||||
|
||||
print_notice(__("You will need to provide valid account name and email. New password will be sent on your email address."));
|
||||
|
||||
print "<form method='POST' action='public.php'>";
|
||||
print "<input type='hidden' name='secretkey' value='$secretkey'>";
|
||||
print "<input type='hidden' name='method' value='do'>";
|
||||
@@ -785,7 +785,10 @@ class Handler_Public extends Handler {
|
||||
if (($test != 4 && $test != 'four') || !$email || !$login) {
|
||||
print_error(__('Some of the required form parameters are missing or incorrect.'));
|
||||
|
||||
print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";
|
||||
print "<form method=\"GET\" action=\"public.php\">
|
||||
<input type=\"hidden\" name=\"op\" value=\"forgotpass\">
|
||||
<input type=\"submit\" value=\"".__("Go back")."\">
|
||||
</form>";
|
||||
|
||||
} else if ($_SESSION["secretkey"] == $secretkey) {
|
||||
|
||||
@@ -797,16 +800,30 @@ class Handler_Public extends Handler {
|
||||
|
||||
Pref_Users::resetUserPassword($this->link, $id, false);
|
||||
|
||||
print "<p>".__("Completed.")."</p>";
|
||||
print "<p>";
|
||||
|
||||
print_notice("Completed.");
|
||||
|
||||
print "<form method=\"GET\" action=\"index.php\">
|
||||
<input type=\"submit\" value=\"".__("Return to Tiny Tiny RSS")."\">
|
||||
</form>";
|
||||
|
||||
} else {
|
||||
print_error(__("Sorry, login and email combination not found."));
|
||||
print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";
|
||||
|
||||
print "<form method=\"GET\" action=\"public.php\">
|
||||
<input type=\"hidden\" name=\"op\" value=\"forgotpass\">
|
||||
<input type=\"submit\" value=\"".__("Go back")."\">
|
||||
</form>";
|
||||
|
||||
}
|
||||
|
||||
} else {
|
||||
print_error(__("Form secret key incorrect. Please enable cookies and try again."));
|
||||
print "<p><a href=\"public.php?op=forgotpass\">".__("Go back")."</a></p>";
|
||||
print "<form method=\"GET\" action=\"public.php\">
|
||||
<input type=\"hidden\" name=\"op\" value=\"forgotpass\">
|
||||
<input type=\"submit\" value=\"".__("Go back")."\">
|
||||
</form>";
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user