fixes #411, auth keys details on notification forms
This commit is contained in:
parent
bc7316639f
commit
77888174cf
6 changed files with 48 additions and 0 deletions
|
@ -205,6 +205,19 @@ $template->assign(
|
|||
)
|
||||
);
|
||||
|
||||
if ($conf['auth_key_duration'] > 0)
|
||||
{
|
||||
$template->assign(
|
||||
'auth_key_duration',
|
||||
time_since(
|
||||
strtotime('now -'.$conf['auth_key_duration'].' second'),
|
||||
'second',
|
||||
null,
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | form construction |
|
||||
// +-----------------------------------------------------------------------+
|
||||
|
|
|
@ -719,6 +719,20 @@ switch ($page['mode'])
|
|||
}
|
||||
}
|
||||
$template->assign($page['mode'], $tpl_var);
|
||||
|
||||
if ($conf['auth_key_duration'] > 0)
|
||||
{
|
||||
$template->assign(
|
||||
'auth_key_duration',
|
||||
time_since(
|
||||
strtotime('now -'.$conf['auth_key_duration'].' second'),
|
||||
'second',
|
||||
null,
|
||||
false
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,6 +101,13 @@ span.errors {
|
|||
<textarea cols="50" rows="5" name="mail_content" id="mail_content" class="description">{$MAIL_CONTENT}</textarea>
|
||||
</p>
|
||||
|
||||
{if isset($auth_key_duration)}
|
||||
<p>
|
||||
{'Each email sent will contain its own automatic authentication key on links, valid for %s.'|translate:$auth_key_duration}
|
||||
<br>{'For security reason, authentication keys do not work for administrators.'|translate}
|
||||
</p>
|
||||
{/if}
|
||||
|
||||
<p class="actionButtons">
|
||||
<input class="submit" type="submit" value="{'Send'|@translate}" name="submitEmail">
|
||||
<span class="errors" style="display:none">✘ {'No recipient selected'|translate}</span>
|
||||
|
|
|
@ -127,6 +127,16 @@ jQuery(document).ready(function(){
|
|||
</table>
|
||||
</fieldset>
|
||||
|
||||
{if isset($auth_key_duration)}
|
||||
<fieldset>
|
||||
<legend>{'Informations'|@translate}</legend>
|
||||
<p>
|
||||
{'Each email sent will contain its own automatic authentication key on links, valid for %s.'|translate:$auth_key_duration}
|
||||
<br>{'For security reason, authentication keys do not work for administrators.'|translate}
|
||||
</p>
|
||||
</fieldset>
|
||||
{/if}
|
||||
|
||||
<p>
|
||||
<input type="submit" value="{'Send'|@translate}" name="send_submit">
|
||||
</p>
|
||||
|
|
|
@ -988,3 +988,5 @@ $lang['Edit user'] = 'Edit user';
|
|||
$lang['Recipients'] = 'Recipients';
|
||||
$lang['No recipient selected'] = 'No recipient selected';
|
||||
$lang['No user is permitted to see this private album'] = 'No user is permitted to see this private album';
|
||||
$lang['Each email sent will contain its own automatic authentication key on links, valid for %s.'] = 'Each email sent will contain its own automatic authentication key on links, valid for %s.';
|
||||
$lang['For security reason, authentication keys do not work for administrators.'] = 'For security reason, authentication keys do not work for administrators.';
|
|
@ -989,3 +989,5 @@ $lang['Edit user'] = 'Éditer l\'utilisateur';
|
|||
$lang['Recipients'] = 'Destinataires';
|
||||
$lang['No recipient selected'] = 'Choisissez un destinataire';
|
||||
$lang['No user is permitted to see this private album'] = 'Aucun utilisateur n\'est autorisé à voir cet album privé';
|
||||
$lang['Each email sent will contain its own automatic authentication key on links, valid for %s.'] = 'Chaque email envoyé contiendra sa propre clef d\'identification automatique sur les liens, valide %s.';
|
||||
$lang['For security reason, authentication keys do not work for administrators.'] = 'Par mesure de sécurité les clefs d\'identification ne fonctionnent pas pour les administrateurs.';
|
Loading…
Reference in a new issue