mirror of
https://github.com/outline/outline.git
synced 2026-12-04 18:34:54 +03:00
fix: Do not forward to a disabled authentication provider when attempting to sign-in with email
This commit is contained in:
1 parent
d825ed957d
commit
62b4f520de
1 file changed
+6
-4
@@ -86,10 +86,12 @@ router.post(
|
||||
const authProvider = find(team.authenticationProviders, {
|
||||
id: user.authentications[0].authenticationProviderId,
|
||||
});
|
||||
ctx.body = {
|
||||
redirect: `${team.url}/auth/${authProvider?.name}`,
|
||||
};
|
||||
return;
|
||||
if (authProvider?.enabled) {
|
||||
ctx.body = {
|
||||
redirect: `${team.url}/auth/${authProvider?.name}`,
|
||||
};
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!team.emailSigninEnabled) {
|
||||
|
||||
Reference in new issue
Block a user