From 483f15d5380425d00d31a1b6dbedcefa27b76d7e Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 28 Mar 2013 13:19:28 +0400 Subject: update utility.css related stuff some more --- classes/handler/public.php | 31 ++++++++++++++++++++++++------- 1 file changed, 24 insertions(+), 7 deletions(-) (limited to 'classes/handler') diff --git a/classes/handler/public.php b/classes/handler/public.php index 84d6aa18e..5adb3ab6e 100644 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -740,17 +740,17 @@ class Handler_Public extends Handler { "; print ''; - print "

".__("Reset password")."

"; + print "

".__("Password recovery")."

"; print "
"; - print "

".__("You will need to provide valid account name and email. New password will be sent on your email address.")."

"; - @$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 "
"; print ""; print ""; @@ -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 "

".__("Go back")."

"; + print " + + +
"; } else if ($_SESSION["secretkey"] == $secretkey) { @@ -797,16 +800,30 @@ class Handler_Public extends Handler { Pref_Users::resetUserPassword($this->link, $id, false); - print "

".__("Completed.")."

"; + print "

"; + + print_notice("Completed."); + + print "

+ +
"; } else { print_error(__("Sorry, login and email combination not found.")); - print "

".__("Go back")."

"; + + print "
+ + +
"; + } } else { print_error(__("Form secret key incorrect. Please enable cookies and try again.")); - print "

".__("Go back")."

"; + print "
+ + +
"; } -- cgit v1.2.3