mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
closes #1400, bunch of other fixes to 404, 403 in accounts
This commit is contained in:
@@ -198,6 +198,8 @@ var ajaxify = ajaxify || {};
|
||||
return ajaxify.go('404');
|
||||
} else if (data && data.status === 403) {
|
||||
return ajaxify.go('403');
|
||||
} else if (data && data.status === 302) {
|
||||
return ajaxify.go(data.responseJSON.slice(1));
|
||||
} else if (textStatus !== "abort") {
|
||||
app.alertError(data.responseJSON.error);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user