Merge pull request #7921 from nextcloud/fix_redirect_on_pw_reset
Removed additional and uneccessary request on password reset
This commit is contained in:
commit
03072c3914
1 changed files with 1 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue