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:
commit
52149d2c54
|
@ -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 New Issue