Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorCyrille Bollu <cyrpub@bollu.be>2022-04-14 22:08:53 +0300
committernextcloud-command <nextcloud-command@users.noreply.github.com>2022-06-08 16:22:10 +0300
commite35cbd2a6b5abc976ce2cce0b60d0aa6d968a252 (patch)
tree765d6bb81522bcbc738e9308f859b2d0b89cd7b1 /core
parent1cf2ed484eeb101566ca1bc570b2b52a2936d7b5 (diff)
Various improvements related to the recent implementation of temporary passwordsbackport/31981/stable24
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')
-rw-r--r--core/templates/publicshareauth.php15
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>