Browse Source

Merge pull request #4435 from nextcloud/allow-at-maximum-10-reset-mails-requests-per-5-minutes

Add at most 10 password reset requests per 5 minutes and IP range
pull/4401/head
Lukas Reschke 9 years ago
committed by GitHub
parent
commit
1bd3bd33f9
  1. 1
      core/Controller/LostController.php
  2. 4
      core/js/lostpassword.js

1
core/Controller/LostController.php

@ -206,6 +206,7 @@ class LostController extends Controller {
/**
* @PublicPage
* @BruteForceProtection(action=passwordResetEmail)
* @AnonRateThrottle(limit=10, period=300)
*
* @param string $user
* @return JSONResponse

4
core/js/lostpassword.js

@ -31,7 +31,9 @@ OC.Lostpassword = {
user : $('#user').val()
},
OC.Lostpassword.sendLinkDone
);
).fail(function() {
OC.Lostpassword.sendLinkError(OC.Lostpassword.sendErrorMsg);
});
}
}
},

Loading…
Cancel
Save