diff options
author | Joas Schilling <coding@schilljs.com> | 2022-06-13 12:22:18 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2022-06-30 16:26:43 +0200 |
commit | a05e5f64ec9c14b7c17d3b9683c884b3a8ccdcea (patch) | |
tree | d7e93f18e977ed769ddba904085fd94373c1f1a5 /templates | |
parent | 3a9ed27c1df3ce7c3d0e3a7770f332f0d20a4b43 (diff) |
Show warning about the throttling
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/authenticate.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/templates/authenticate.php b/templates/authenticate.php index f62042e1b..ba7d5e7a6 100644 --- a/templates/authenticate.php +++ b/templates/authenticate.php @@ -7,7 +7,14 @@ 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')); ?></div> + <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']) { ?> + <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 } else { ?> <div class="warning"><?php p($l->t('The password is wrong. Try again.')); ?></div> <?php } ?> |