Removed additional and uneccessary request on password reset, to fix redirection afterwards.

Signed-off-by: Luca Adrian Lindhorst <info@lucalindhorst.de>
This commit is contained in:
Luca Adrian Lindhorst 2018-01-17 16:12:49 +01:00 committed by Julius Härtl
parent 5520ba3d15
commit 269ca40784
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with 1 additions and 8 deletions

View File

@ -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;