From 8c0167541c7552f57fc6c424c518b640e1be1999 Mon Sep 17 00:00:00 2001 From: Luca Adrian Lindhorst Date: Sat, 30 Dec 2017 02:14:36 +0100 Subject: [PATCH 1/2] Fixed error in lostpassword.js, that prevented redirecting after password change --- core/js/lostpassword.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index b44962f552e93..ccf569ec2a1cb 100644 --- a/core/js/lostpassword.js +++ b/core/js/lostpassword.js @@ -162,7 +162,7 @@ OC.Lostpassword = { var resetErrorMsg; if (result && result.status === 'success'){ $.post( - OC.webroot + '/', + OC.webroot + '/ocs/v1.php', { user : window.location.href.split('/').pop(), password : $('#password').val() From c7eaa21bf0a974ac4c19b4a0c1ac6c48916f7c20 Mon Sep 17 00:00:00 2001 From: Luca Adrian Lindhorst Date: Thu, 4 Jan 2018 09:18:54 +0100 Subject: [PATCH 2/2] Removed additional and uneccessary request on password reset --- core/js/lostpassword.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/js/lostpassword.js b/core/js/lostpassword.js index ccf569ec2a1cb..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 + '/ocs/v1.php', - { - user : window.location.href.split('/').pop(), - password : $('#password').val() - }, - OC.Lostpassword.redirect - ); + OC.Lostpassword.redirect(); } else { if (result && result.msg){ resetErrorMsg = result.msg;