summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-11-11 09:44:20 +0100
committerLukas Reschke <lukas@statuscode.ch>2016-11-18 12:10:51 +0100
commitbb7787a157b7d8fc8c376e9ea745e00b3b0a9346 (patch)
tree7a68d3f4447f5e3bd859f9dbf1cf499d94c6b2ef /lib
parent02ea134152a3362702adf3477833268bf45656f8 (diff)
downloadnextcloud-server-bb7787a157b7d8fc8c376e9ea745e00b3b0a9346.tar.gz
nextcloud-server-bb7787a157b7d8fc8c376e9ea745e00b3b0a9346.zip
Add the 15 seconds to the window, instead of removing
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
index 81cc09c7f54..d5f7a7660a7 100644
--- a/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
+++ b/lib/private/AppFramework/Middleware/Security/SecurityMiddleware.php
@@ -159,7 +159,7 @@ class SecurityMiddleware extends Middleware {
if ($this->reflector->hasAnnotation('PasswordConfirmationRequired')) {
$lastConfirm = (int) $this->session->get('last-password-confirm');
- if ($lastConfirm < (time() - 30 * 60 + 15)) { // allow 15 seconds delay
+ if ($lastConfirm < (time() - (30 * 60 + 15))) { // allow 15 seconds delay
throw new NotConfirmedException();
}
}