dont redirect back to reset password after login

This commit is contained in:
Baris Usakli
2013-09-26 12:50:24 -04:00
parent 7d50551392
commit 9c14618d55

View File

@@ -32,8 +32,10 @@
$('#login-error-notify').show(); $('#login-error-notify').show();
} else { } else {
$('#login-error-notify').hide(); $('#login-error-notify').hide();
//window.location.replace(RELATIVE_PATH + "/?loggedin"); if(app.previousUrl.indexOf('/reset/') != -1)
history.go(-1); window.location.replace(RELATIVE_PATH + "/?loggedin");
else
window.location.replace(app.previousUrl + "?loggedin");
app.loadConfig(); app.loadConfig();
} }