mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
fixes #2315 adjust password page for first login
This commit is contained in:
@@ -454,3 +454,4 @@ $lang['Custom dates'] = 'Custom dates';
|
|||||||
$lang['There are no tags available for the photos currently filtered'] = 'There are no tags available for the photos currently filtered';
|
$lang['There are no tags available for the photos currently filtered'] = 'There are no tags available for the photos currently filtered';
|
||||||
$lang['There are no creation dates available for the photos currently filtered'] = 'There are no creation dates available for the photos currently filtered';
|
$lang['There are no creation dates available for the photos currently filtered'] = 'There are no creation dates available for the photos currently filtered';
|
||||||
$lang['There are no authors available for the photos currently filtered'] = 'There are no authors available for the photos currently filtered';
|
$lang['There are no authors available for the photos currently filtered'] = 'There are no authors available for the photos currently filtered';
|
||||||
|
$lang['Set your password below.'] = 'Set your password below.';
|
||||||
|
|||||||
@@ -454,3 +454,4 @@ $lang['Custom dates'] = 'Dates personnalisées';
|
|||||||
$lang['There are no tags available for the photos currently filtered'] = 'Aucun tag n\'est disponible pour les photos actuellement filtrées';
|
$lang['There are no tags available for the photos currently filtered'] = 'Aucun tag n\'est disponible pour les photos actuellement filtrées';
|
||||||
$lang['There are no creation dates available for the photos currently filtered'] = 'Aucune date de création n\'est disponible pour les photos actuellement filtrées';
|
$lang['There are no creation dates available for the photos currently filtered'] = 'Aucune date de création n\'est disponible pour les photos actuellement filtrées';
|
||||||
$lang['There are no authors available for the photos currently filtered'] = 'Aucun auteur n\'est disponible pour les photos actuellement filtrées';
|
$lang['There are no authors available for the photos currently filtered'] = 'Aucun auteur n\'est disponible pour les photos actuellement filtrées';
|
||||||
|
$lang['Set your password below.'] = 'Définissez votre mot de passe ci-dessous.';
|
||||||
|
|||||||
@@ -286,6 +286,7 @@ if ('lost' == $page['action'])
|
|||||||
else if ('reset' == $page['action'] and isset($first_login) and $first_login)
|
else if ('reset' == $page['action'] and isset($first_login) and $first_login)
|
||||||
{
|
{
|
||||||
$title = l10n('Welcome');
|
$title = l10n('Welcome');
|
||||||
|
$template->assign('is_first_login', true);
|
||||||
}
|
}
|
||||||
|
|
||||||
$page['body_id'] = 'thePasswordPage';
|
$page['body_id'] = 'thePasswordPage';
|
||||||
|
|||||||
@@ -12,7 +12,7 @@
|
|||||||
{if $action ne 'none'}
|
{if $action ne 'none'}
|
||||||
<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post">
|
<form id="lostPassword" action="{$form_action}?action={$action}{if isset($key)}&key={$key}{/if}" method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend>{'Forgot your password?'|translate}</legend>
|
{if !isset($is_first_login)}<legend>{'Forgot your password?'|translate}</legend>{/if}
|
||||||
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
<input type="hidden" name="pwg_token" value="{$PWG_TOKEN}">
|
||||||
|
|
||||||
{if $action eq 'lost'}
|
{if $action eq 'lost'}
|
||||||
@@ -29,11 +29,13 @@
|
|||||||
<p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p>
|
<p class="bottomButtons"><input type="submit" name="submit" value="{'Change my password'|@translate}"></p>
|
||||||
{elseif $action eq 'reset'}
|
{elseif $action eq 'reset'}
|
||||||
|
|
||||||
<div class="message">{'Hello'|@translate} <em>{$username}</em>. {'Enter your new password below.'|@translate}</div>
|
<div class="message">
|
||||||
|
{'Hello'|@translate} <em>{$username}</em>. {if !isset($is_first_login)}{'Enter your new password below.'|@translate}{else}{'Set your password below.'|translate}{/if}
|
||||||
|
</div>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<label>
|
<label>
|
||||||
{'New password'|@translate}
|
{if !isset($is_first_login)}{'New password'|@translate}{else}{'Password'|translate}{/if}
|
||||||
<br>
|
<br>
|
||||||
<input type="password" name="use_new_pwd" id="use_new_pwd" value="">
|
<input type="password" name="use_new_pwd" id="use_new_pwd" value="">
|
||||||
</label>
|
</label>
|
||||||
|
|||||||
Reference in New Issue
Block a user