diff options
author | Cyrille Bollu <cyrpub@bollu.be> | 2022-04-14 21:08:53 +0200 |
---|---|---|
committer | nextcloud-command <nextcloud-command@users.noreply.github.com> | 2022-06-08 13:22:10 +0000 |
commit | e35cbd2a6b5abc976ce2cce0b60d0aa6d968a252 (patch) | |
tree | 765d6bb81522bcbc738e9308f859b2d0b89cd7b1 /core/templates | |
parent | 1cf2ed484eeb101566ca1bc570b2b52a2936d7b5 (diff) | |
download | nextcloud-server-e35cbd2a6b5abc976ce2cce0b60d0aa6d968a252.tar.gz nextcloud-server-e35cbd2a6b5abc976ce2cce0b60d0aa6d968a252.zip |
Various improvements related to the recent implementation of temporary passwords
for mail shares:
1- Changes style of "forgot password?" and "Back" button
2- Adds information about share password's expiration time in the emails sent.
3- Shows password expiration time in the Share menu
4- Fixes an issue when the message "Password expires..." would be shown for non email share types (which don't have temporary passswords)
5- At share's creation, password should only be sent when it's a permanent one
See also https://github.com/nextcloud/server/issues/31952
Signed-off-by: Cyrille Bollu <cyrpub@bollu.be>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
Diffstat (limited to 'core/templates')
-rw-r--r-- | core/templates/publicshareauth.php | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/core/templates/publicshareauth.php b/core/templates/publicshareauth.php index 74303ce02ea..03b534f53da 100644 --- a/core/templates/publicshareauth.php +++ b/core/templates/publicshareauth.php @@ -61,23 +61,20 @@ <!-- request password button --> <?php if (!isset($_['identityOk']) && $_['share']->getShareType() === $_['share']::TYPE_EMAIL && !$_['share']->getSendPasswordByTalk()): ?> - <input type="button" - id="request-password-button-not-talk" - value="<?php p($l->t('Request password')); ?>" - class="primary" /> + <a id="request-password-button-not-talk"><?php p($l->t('Forgot password?')); ?></a> <?php endif; ?> <!-- back to showShare button --> <form method="get"> <fieldset> - <input type="submit" + <a + href="" id="request-password-back-button" - value="<?php p($l->t('Back')); ?>" - class="primary" <?php if (isset($_['identityOk'])): ?> - style="display:block;" /> + style="display:block;"> <?php else: ?> - style="display:none;" /> + style="display:none;"> <?php endif; ?> + <?php p($l->t('Back')); ?></a> </fieldset> </form> |