Skip to content

Commit 1c1fce3

Browse files
Update registration form to handle oidc auth enabled
1 parent 7c28da1 commit 1c1fce3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

ui/src/components/user/UserRegisterForm.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
userNameTextInput?.focus();
7171
</script>
7272

73-
{#if !AppConfig.AllowRegistration && !AppConfig.AllowGuests && !isAdmin}
73+
{#if AppConfig.OIDCAuthEnabled || (!AppConfig.AllowRegistration && !AppConfig.AllowGuests && !isAdmin)}
7474
<div class="text-red-500">
7575
{$LL.registrationDisabled()}
7676
</div>

ui/src/pages/user/UserProfile.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
SubscriptionsEnabled,
3838
Subscription,
3939
PathPrefix,
40+
OIDCAuthEnabled,
4041
} = AppConfig;
4142
4243
function toggleUpdatePassword() {
@@ -630,7 +631,7 @@
630631
</div>
631632
</div>
632633

633-
{#if !LdapEnabled && !HeaderAuthEnabled}
634+
{#if !OIDCAuthEnabled && !LdapEnabled && !HeaderAuthEnabled}
634635
<div class="w-full text-center mt-8">
635636
<HollowButton onClick="{toggleDeleteAccount}" color="red">
636637
{$LL.deleteAccount()}

0 commit comments

Comments
 (0)