diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index b44962f552e93..a6906ac3543c5 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -161,14 +161,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;