Merge pull request #7921 from nextcloud/fix_redirect_on_pw_reset

Removed additional and uneccessary request on password reset
This commit is contained in:
Morris Jobke 2018-01-24 14:21:44 +01:00 committed by GitHub
commit 03072c3914
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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;