We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 590449b commit d53494aCopy full SHA for d53494a
src/service/routes/auth.js
@@ -67,9 +67,12 @@ const loginSuccessHandler = () => async (req, res) => {
67
};
68
69
router.get('/config', (req, res) => {
70
+ const usernamePasswordMethod = getLoginStrategy();
71
res.send({
- allLoginMethods: getAuthMethods().map((am) => am.type.toLowerCase()),
72
- usernamePasswordMethod: getLoginStrategy(),
+ // enabled username /password auth method
73
+ usernamePasswordMethod: usernamePasswordMethod,
74
+ // other enabled auth methods
75
+ otherMethods: getAuthMethods().map((am) => am.type.toLowerCase()).filter((authType) => authType !== usernamePasswordMethod),
76
});
77
78
0 commit comments