From f7a4a45bde77b268957d8d2615521c03625c6448 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 19 Feb 2019 20:43:45 +0300 Subject: [PATCH] pwd reset: use dijit controls --- classes/handler/public.php | 70 ++++++++++++++++++++++---------------- 1 file changed, 40 insertions(+), 30 deletions(-) diff --git a/classes/handler/public.php b/classes/handler/public.php index c58ac41d8..662e0b72f 100755 --- a/classes/handler/public.php +++ b/classes/handler/public.php @@ -843,16 +843,33 @@ class Handler_Public extends Handler { @$hash = clean($_REQUEST["hash"]); header('Content-Type: text/html; charset=utf-8'); - print "Tiny Tiny RSS - - "; + ?> - echo stylesheet_tag("lib/dijit/themes/claro/claro.css"); - echo stylesheet_tag("css/default.css"); - echo javascript_tag("lib/prototype.js"); + + + Tiny Tiny RSS + + + + + + +
- print " -
"; + + ".__("Password recovery").""; print "
"; @@ -896,8 +913,8 @@ class Handler_Public extends Handler { print "
"; - print "
- + print " +
"; } else if (!$method) { @@ -909,12 +926,12 @@ class Handler_Public extends Handler { print "
"; print ""; - print ""; + print ""; print "
"; print "
"; print ""; - print ""; + print ""; print "
"; $_SESSION["pwdreset:testvalue1"] = rand(1,10); @@ -922,12 +939,12 @@ class Handler_Public extends Handler { print "
"; print ""; - print ""; + print ""; print "
"; print "
"; print "
"; - print ""; + print ""; print "
"; print ""; @@ -940,9 +957,9 @@ class Handler_Public extends Handler { if ($test != ($_SESSION["pwdreset:testvalue1"] + $_SESSION["pwdreset:testvalue2"]) || !$email || !$login) { print_error(__('Some of the required form parameters are missing or incorrect.')); - print "
- - + print " + +
"; } else { @@ -995,27 +1012,20 @@ class Handler_Public extends Handler { //Pref_Users::resetUserPassword($id, false); - print "

"; - - print "

"."Completed."."

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