Merge pull request #8031 from nextcloud/7921_12

[stable13] Removed additional and uneccessary request on password reset, to fix redirection afterwards.
This commit is contained in:
Morris Jobke 2018-01-24 17:24:51 +01:00 committed by GitHub
commit 52149d2c54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;