Removed additional and uneccessary request on password reset, to fix redirection afterwards.
Signed-off-by: Luca Adrian Lindhorst <info@lucalindhorst.de>
This commit is contained in:
parent
5520ba3d15
commit
269ca40784
|
@ -162,14 +162,7 @@ OC.Lostpassword = {
|
||||||
resetDone : function(result){
|
resetDone : function(result){
|
||||||
var resetErrorMsg;
|
var resetErrorMsg;
|
||||||
if (result && result.status === 'success'){
|
if (result && result.status === 'success'){
|
||||||
$.post(
|
OC.Lostpassword.redirect();
|
||||||
OC.webroot + '/',
|
|
||||||
{
|
|
||||||
user : window.location.href.split('/').pop(),
|
|
||||||
password : $('#password').val()
|
|
||||||
},
|
|
||||||
OC.Lostpassword.redirect
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
if (result && result.msg){
|
if (result && result.msg){
|
||||||
resetErrorMsg = result.msg;
|
resetErrorMsg = result.msg;
|
||||||
|
|
Loading…
Reference in New Issue