mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-27 09:06:15 +01:00
fix: show login fields if user has local password
This commit is contained in:
@@ -237,7 +237,7 @@ module.exports = function (middleware) {
|
|||||||
if (res.locals.isAPI) {
|
if (res.locals.isAPI) {
|
||||||
res.status(401).json({});
|
res.status(401).json({});
|
||||||
} else {
|
} else {
|
||||||
res.redirect(nconf.get('relative_path') + '/login');
|
res.redirect(nconf.get('relative_path') + '/login?local=1');
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
], next);
|
], next);
|
||||||
|
|||||||
Reference in New Issue
Block a user