From 269ca40784386c97483d353d3658756126e77cb7 Mon Sep 17 00:00:00 2001 From: Luca Adrian Lindhorst Date: Wed, 17 Jan 2018 16:12:49 +0100 Subject: Removed additional and uneccessary request on password reset, to fix redirection afterwards. Signed-off-by: Luca Adrian Lindhorst --- core/js/lostpassword.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'core/js') 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; -- cgit v1.2.3