Skip to content

Commit

Permalink
Merge pull request #8031 from nextcloud/7921_12
Browse files Browse the repository at this point in the history
[stable13] Removed additional and uneccessary request on password reset, to fix redirection afterwards.
  • Loading branch information
MorrisJobke authored Jan 24, 2018
2 parents a0f62b7 + 6b954e6 commit 52149d2
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions core/js/lostpassword.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 52149d2

Please sign in to comment.