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

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-07-22 12:42:32 +0300
committerCarl Schwan <carl@carlschwan.eu>2022-07-22 12:42:32 +0300
commit0bfa8015bf8013d7a385b217c7290a8c532276eb (patch)
tree1b301cfd6dc7f2596c795ec28abe2bb9593715de
parentc36cab3f5540ae6550480fb5d587c12e1e7a1bb6 (diff)
Adapte guest page to NC 25adapt/nc-25-guest
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
-rw-r--r--templates/authenticate.php50
1 files changed, 26 insertions, 24 deletions
diff --git a/templates/authenticate.php b/templates/authenticate.php
index 3a3193ea9..55adf0c56 100644
--- a/templates/authenticate.php
+++ b/templates/authenticate.php
@@ -1,28 +1,30 @@
<?php
/** @var $_ array */
/** @var $l \OCP\IL10N */
-style('core', 'publicshareauth');
-script('core', 'publicshareauth');
+\OCP\Util::addStyle('core', 'publicshareauth');
+\OCP\Util::addScript('core', 'publicshareauth');
?>
-<form method="post">
- <fieldset class="warning">
- <?php if ($_['showBruteForceWarning']) { ?>
- <div class="warning-info"><?php p($l->t('We have detected multiple invalid password attempts from your IP. Therefore your next attempt is throttled up to 30 seconds.')); ?></div>
- <?php } ?>
- <?php if (!$_['wrongpw']) { ?>
- <div class="warning-info"><?php p($l->t('This conversation is password-protected.')); ?></div>
- <?php } else { ?>
- <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
- <?php } ?>
- <p>
- <label for="password" class="infield"><?php p($l->t('Password')); ?></label>
- <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
- <input type="password" name="password" id="password"
- placeholder="<?php p($l->t('Password')); ?>" value=""
- autocomplete="new-password" autocapitalize="off" autocorrect="off"
- autofocus />
- <input type="submit" id="password-submit"
- class="svg icon-confirm input-button-inline" value="" disabled="disabled" />
- </p>
- </fieldset>
-</form>
+<div class="guest-box">
+ <form method="post">
+ <fieldset class="warning">
+ <?php if ($_['showBruteForceWarning']) { ?>
+ <div class="warning-info"><?php p($l->t('We have detected multiple invalid password attempts from your IP. Therefore your next attempt is throttled up to 30 seconds.')); ?></div>
+ <?php } ?>
+ <?php if (!$_['wrongpw']) { ?>
+ <div class="warning-info"><?php p($l->t('This conversation is password-protected.')); ?></div>
+ <?php } else { ?>
+ <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div>
+ <?php } ?>
+ <p>
+ <label for="password" class="infield"><?php p($l->t('Password')); ?></label>
+ <input type="hidden" name="requesttoken" value="<?php p($_['requesttoken']) ?>" />
+ <input type="password" name="password" id="password"
+ placeholder="<?php p($l->t('Password')); ?>" value=""
+ autocomplete="new-password" autocapitalize="off" autocorrect="off"
+ autofocus />
+ <input type="submit" id="password-submit"
+ class="svg icon-confirm input-button-inline" value="" disabled="disabled" />
+ </p>
+ </fieldset>
+ </form>
+</div>