summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorLuca Adrian Lindhorst <info@lucalindhorst.de>2018-01-17 16:12:49 +0100
committerJulius Härtl <jus@bitgrid.net>2018-01-24 13:37:06 +0100
commit269ca40784386c97483d353d3658756126e77cb7 (patch)
treee25eca9fd9c5e428aad4f7c006a003cbb9b7f75a /core/js
parent5520ba3d15b088e9151ffef89f7cd389c470563b (diff)
downloadnextcloud-server-269ca40784386c97483d353d3658756126e77cb7.tar.gz
nextcloud-server-269ca40784386c97483d353d3658756126e77cb7.zip
Removed additional and uneccessary request on password reset, to fix redirection afterwards.
Signed-off-by: Luca Adrian Lindhorst <info@lucalindhorst.de>
Diffstat (limited to 'core/js')
-rw-r--r--core/js/lostpassword.js9
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;