[#335] added Discord OAuth2 provider
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user