[#335] added Discord OAuth2 provider

This commit is contained in:
Gani Georgiev
2022-08-21 19:38:42 +03:00
parent 0b8c7f6883
commit 49b084cf50
18 changed files with 246 additions and 149 deletions
@@ -63,7 +63,7 @@
emailAuth: Object.assign({ enabled: true }, data.emailAuth),
};
const providers = ["googleAuth", "facebookAuth", "githubAuth", "gitlabAuth"];
const providers = ["googleAuth", "facebookAuth", "githubAuth", "gitlabAuth", "discordAuth"];
for (const provider of providers) {
formSettings[provider] = Object.assign(
{ enabled: false, allowRegistrations: true },
@@ -131,6 +131,13 @@
showSelfHostedFields
bind:config={formSettings.gitlabAuth}
/>
<AuthProviderAccordion
single
key="discordAuth"
title="Discord"
icon="ri-discord-line"
bind:config={formSettings.discordAuth}
/>
</div>
<div class="flex m-t-base">