From 2de0f01dce5913dcca68c28376205f0a6d473b7c Mon Sep 17 00:00:00 2001 From: plegall Date: Wed, 24 Aug 2011 20:03:53 +0000 Subject: feature 2027 implemented: the "lost password" feature was rewritten. The algorithm is highly inspired from WordPress : 1) in a single field, you give a username or an email 2) Piwigo sends an email with the activation key 3) the user clicks on the link in the email (with the activation key) and is able to set a new password The "lost password" feature is no longer limited to "classic" users: administrators and webmasters can use it too (no need to tell webmasters that they can only change their password in the database) git-svn-id: http://piwigo.org/svn/trunk@11992 68402e56-0260-453c-a942-63ccdbb3a9ee --- themes/default/template/password.tpl | 83 ++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 27 deletions(-) (limited to 'themes/default/template') diff --git a/themes/default/template/password.tpl b/themes/default/template/password.tpl index 6c6f9a35d..eef2c64e2 100644 --- a/themes/default/template/password.tpl +++ b/themes/default/template/password.tpl @@ -1,14 +1,16 @@ {if isset($MENUBAR)}{$MENUBAR}{/if}
- -
-
{if count($errors)}
@@ -30,27 +32,54 @@
{/if} -
-
- {'Retrieve password'|@translate} +{if $action ne 'none'} + + -
    -
  • - - - - -
  • -
  • - - - - -
  • -
-
+ {if $action eq 'lost'} +
{'Please enter your username or email address.'|@translate} {'You will receive a link to create a new password via email.'|@translate}
+ +

+ +

+ +

+ {elseif $action eq 'reset'} + +
{'Hello'|@translate} {$username}. {'Enter your new password below.'|@translate}
+ +

+ +

+ +

+ +

+ +

+ {/if} -

+{/if} {* $action ne 'none' *} + +
-- cgit v1.2.3