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:
authorJoas Schilling <coding@schilljs.com>2022-07-01 17:33:50 +0300
committerJoas Schilling <coding@schilljs.com>2022-07-01 17:33:50 +0300
commit5370cb5f796d7b5ad942445aa1fcd17590d46ff3 (patch)
tree9eb020ee6dd17f753a31512aee97a18c8fd644dc /templates
parentc0da143ad2e775845db9ddf5f838f69e59e9af05 (diff)
Show password and bruteforce hint
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/authenticate.php12
1 files changed, 4 insertions, 8 deletions
diff --git a/templates/authenticate.php b/templates/authenticate.php
index ba7d5e7a6..3a3193ea9 100644
--- a/templates/authenticate.php
+++ b/templates/authenticate.php
@@ -6,15 +6,11 @@ script('core', 'publicshareauth');
?>
<form method="post">
<fieldset class="warning">
- <?php if (!$_['wrongpw']) { ?>
- <div class="warning-info">
- <?php p($l->t('This conversation is password-protected.')); ?>
- <?php if ($_['showBruteForceWarning']) { ?>
- <?php p($l->t('We have detected multiple invalid password attempts from your IP. Therefore your next attempt is throttled up to 30 seconds.')); ?>
- <?php } ?>
- </div>
- <?php } elseif ($_['showBruteForceWarning']) { ?>
+ <?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 } ?>