diff options
author | plegall <plg@piwigo.org> | 2016-07-05 13:37:51 +0200 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2016-07-05 13:37:51 +0200 |
commit | cfb62ec79b1f51534e312da8e5a3d7b6ed73e567 (patch) | |
tree | 14b625786c932e91da43d61f6e442a63db3fde2e /themes/smartpocket | |
parent | 1f0e95c22c86d8fbc1fd08924602b48130d7ea8a (diff) |
fixes #270 add password reset form to smartpocket
Diffstat (limited to 'themes/smartpocket')
-rw-r--r-- | themes/smartpocket/template/identification.tpl | 12 | ||||
-rwxr-xr-x | themes/smartpocket/template/password.tpl | 27 |
2 files changed, 33 insertions, 6 deletions
diff --git a/themes/smartpocket/template/identification.tpl b/themes/smartpocket/template/identification.tpl index 33d011570..cf29190da 100644 --- a/themes/smartpocket/template/identification.tpl +++ b/themes/smartpocket/template/identification.tpl @@ -28,14 +28,14 @@ </form> - <div data-role="fieldcontain"> -{if isset($U_REGISTER)} - <a href="{$U_REGISTER}" data-role="button">{'Register'|@translate}</a> -{/if} -{* + <div data-role="fieldcontain" style="margin-top:2em"> {if isset($U_LOST_PASSWORD)} <a href="{$U_LOST_PASSWORD}" data-role="button">{'Forgot your password?'|@translate}</a> {/if} -*} + +{if isset($U_REGISTER)} + <a href="{$U_REGISTER}" data-role="button">{'Register'|@translate}</a> +{/if} + </div> </div> diff --git a/themes/smartpocket/template/password.tpl b/themes/smartpocket/template/password.tpl new file mode 100755 index 000000000..a45ef819c --- /dev/null +++ b/themes/smartpocket/template/password.tpl @@ -0,0 +1,27 @@ +{include file='infos_errors.tpl'} +<div data-role="content"> +<h3>{'Forgot your password?'|translate}</h3> +{if $action ne 'none'} +<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post"> + <input type="hidden" name="pwg_token" value="{$PWG_TOKEN}"> + + {if $action eq 'lost'} + <div data-role="fieldcontain"> + <label for="username">{'Username or email'|@translate}</label> + <input type="text" id="username_or_email" name="username_or_email" size="40" maxlength="40"{if isset($username_or_email)} value="{$username_or_email}"{/if}> + <input type="submit" name="submit" value="{'Change my password'|@translate}"> + </div> + + {elseif $action eq 'reset'} + <div data-role="fieldcontain"> + <label for="password">{'New password'|@translate}</label> + <input type="password" name="use_new_pwd" id="use_new_pwd" value=""> + <label for="passwordConf">{'Confirm Password'|@translate}</label> + <input type="password" name="passwordConf" id="passwordConf" value=""> + <input type="submit" name="submit" value="{'Submit'|@translate}"> + </div> + {/if} + +</form> +{/if} {* $action ne 'none' *} +</div> |