mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +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) {
|
||||
res.status(401).json({});
|
||||
} else {
|
||||
res.redirect(nconf.get('relative_path') + '/login');
|
||||
res.redirect(nconf.get('relative_path') + '/login?local=1');
|
||||
}
|
||||
},
|
||||
], next);
|
||||
|
||||
Reference in New Issue
Block a user