mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
dont redirect back to reset password after login
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user