diff options
author | Luca Adrian Lindhorst <info@lucalindhorst.de> | 2018-01-17 16:12:49 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2018-01-24 16:14:37 +0100 |
commit | 6b954e6cd6229c0a5ace1c6c0c9386effcb15904 (patch) | |
tree | fd39db2b0270d5b49d0a96c8f1c44c253e2d17c2 | |
parent | 3b35c226ce7ba755ec933b57e008a7748a9a0195 (diff) | |
download | nextcloud-server-6b954e6cd6229c0a5ace1c6c0c9386effcb15904.tar.gz nextcloud-server-6b954e6cd6229c0a5ace1c6c0c9386effcb15904.zip |
Removed additional and uneccessary request on password reset, to fix redirection afterwards.
Signed-off-by: Luca Adrian Lindhorst <info@lucalindhorst.de>
-rw-r--r-- | core/js/lostpassword.js | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index 8c770047444..5f81a96cd4f 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -162,14 +162,7 @@ OC.Lostpassword = { resetDone : function(result){ var resetErrorMsg; if (result && result.status === 'success'){ - $.post( - OC.webroot + '/', - { - user : window.location.href.split('/').pop(), - password : $('#password').val() - }, - OC.Lostpassword.redirect - ); + OC.Lostpassword.redirect(); } else { if (result && result.msg){ resetErrorMsg = result.msg; |