diff options
author | Joas Schilling <coding@schilljs.com> | 2022-07-01 16:33:50 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-07-01 16:33:50 +0200 |
commit | 5370cb5f796d7b5ad942445aa1fcd17590d46ff3 (patch) | |
tree | 9eb020ee6dd17f753a31512aee97a18c8fd644dc /templates | |
parent | c0da143ad2e775845db9ddf5f838f69e59e9af05 (diff) |
Show password and bruteforce hint
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/authenticate.php | 12 |
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 } ?> |