diff options
author | Lukas Reschke <lukas@statuscode.ch> | 2017-04-22 08:12:54 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2017-04-22 08:12:54 +0200 |
commit | d0d34d308a9d752d372fb9249b00014b8fa7f9a1 (patch) | |
tree | 5684714e3bb744fd1c2b9d11462a17f794c34aa6 /core/js | |
parent | 363d1c69dda472c76cf258e1fcd77d5765671e2b (diff) | |
download | nextcloud-server-d0d34d308a9d752d372fb9249b00014b8fa7f9a1.tar.gz nextcloud-server-d0d34d308a9d752d372fb9249b00014b8fa7f9a1.zip |
Add at most 10 password reset requests per 5 minutes and IP range
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
Diffstat (limited to 'core/js')
-rw-r--r-- | core/js/lostpassword.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index 6e18dcc1f8b..4690b86f995 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -31,7 +31,9 @@ OC.Lostpassword = { user : $('#user').val() }, OC.Lostpassword.sendLinkDone - ); + ).fail(function() { + OC.Lostpassword.sendLinkError(OC.Lostpassword.sendErrorMsg); + }); } } }, |