fix: incorrect authentication key
This commit is contained in:
11 files changed
+33
-42
No files matched your search
@@ -19,7 +19,7 @@
|
||||
url: '/profile/password',
|
||||
},
|
||||
{
|
||||
name: $t('form.profile.data.2fa.2fa'),
|
||||
name: $t('form.profile.2fa.2fa'),
|
||||
url: '/profile/password/2fa',
|
||||
},
|
||||
{
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
>
|
||||
<Icon src={Key} size="24" />
|
||||
</Material>
|
||||
<span class="font-medium text-lg">{$t('form.profile.data.2fa.2fa')}</span>
|
||||
<span class="font-medium text-lg">{$t('form.profile.2fa.2fa')}</span>
|
||||
<span class="text-sm">
|
||||
{data.my_user?.local_user_view.local_user.totp_2fa_enabled
|
||||
? $t('common.enabled')
|
||||
|
||||
@@ -58,7 +58,7 @@
|
||||
disabled
|
||||
type="password"
|
||||
value={totpLink}
|
||||
label={$t('form.profile.data.2fa.totp')}
|
||||
label={$t('form.profile.2fa.totp')}
|
||||
>
|
||||
{#snippet suffix()}
|
||||
<button
|
||||
@@ -73,7 +73,7 @@
|
||||
</button>
|
||||
{/snippet}
|
||||
<span class="font-normal text-xs">
|
||||
{$t('form.profile.data.2fa.paste')}
|
||||
{$t('form.profile.2fa.paste')}
|
||||
</span>
|
||||
</TextInput>
|
||||
{/if}
|
||||
|
||||
@@ -47,21 +47,21 @@
|
||||
<form onsubmit={preventDefault(changePassword)} class="flex flex-col gap-4">
|
||||
<TextInput
|
||||
bind:value={oldPassword}
|
||||
label={$t('form.profile.data.currentPassword')}
|
||||
label={$t('form.profile.currentPassword')}
|
||||
type="password"
|
||||
minlength={10}
|
||||
required
|
||||
/>
|
||||
<TextInput
|
||||
bind:value={newPassword}
|
||||
label={$t('form.profile.data.newPassword')}
|
||||
label={$t('form.profile.newPassword')}
|
||||
type="password"
|
||||
minlength={10}
|
||||
required
|
||||
/>
|
||||
<TextInput
|
||||
bind:value={newPasswordVerify}
|
||||
label={$t('form.profile.data.verifyNewPassword')}
|
||||
label={$t('form.profile.verifyNewPassword')}
|
||||
type="password"
|
||||
minlength={10}
|
||||
required
|
||||
|
||||
@@ -97,7 +97,7 @@
|
||||
onaction={() => deleteAccount(4)}
|
||||
>
|
||||
{#snippet customTitle()}
|
||||
<span>{$t('form.profile.data.deleteAccount.label')}</span>
|
||||
<span>{$t('form.profile.deleteAccount.label')}</span>
|
||||
{/snippet}
|
||||
<TextInput
|
||||
label={$t('form.password')}
|
||||
@@ -105,10 +105,10 @@
|
||||
bind:value={deletion.password}
|
||||
/>
|
||||
<Checkbox bind:checked={deletion.deleteContent}>
|
||||
{$t('form.profile.data.deleteAccount.deleteContent')}
|
||||
{$t('form.profile.deleteAccount.deleteContent')}
|
||||
{#snippet description()}
|
||||
<span>
|
||||
{$t('form.profile.data.deleteAccount.warning')}
|
||||
{$t('form.profile.deleteAccount.warning')}
|
||||
</span>
|
||||
{/snippet}
|
||||
</Checkbox>
|
||||
@@ -128,10 +128,10 @@
|
||||
{$t('routes.profile.delete.warning')}
|
||||
</p>
|
||||
<Switch bind:checked={deletion.deleteContent}>
|
||||
{$t('form.profile.data.deleteAccount.deleteContent')}
|
||||
{$t('form.profile.deleteAccount.deleteContent')}
|
||||
{#snippet description()}
|
||||
<span>
|
||||
{$t('form.profile.data.deleteAccount.warning')}
|
||||
{$t('form.profile.deleteAccount.warning')}
|
||||
</span>
|
||||
{/snippet}
|
||||
</Switch>
|
||||
|
||||
@@ -89,54 +89,45 @@
|
||||
{/if}
|
||||
{@render children?.()}
|
||||
{#if data.my_user?.local_user_view?.local_user && formData}
|
||||
<TextInput label={$t('form.profile.email')} bind:value={formData.email} />
|
||||
<TextInput
|
||||
label={$t('form.profile.data.email')}
|
||||
bind:value={formData.email}
|
||||
/>
|
||||
<TextInput
|
||||
label={$t('form.profile.data.displayName')}
|
||||
label={$t('form.profile.displayName')}
|
||||
bind:value={formData.display_name}
|
||||
placeholder="Optional"
|
||||
/>
|
||||
<MarkdownEditor
|
||||
images={false}
|
||||
bind:value={() => formData.bio ?? '', (v) => (formData.bio = v)}
|
||||
label={$t('form.profile.data.bio')}
|
||||
label={$t('form.profile.bio')}
|
||||
previewButton
|
||||
/>
|
||||
<div class="flex gap-2 items-center *:flex-1">
|
||||
<ImageInput
|
||||
label={$t('form.profile.data.avatar')}
|
||||
bind:files={profileImage}
|
||||
/>
|
||||
<ImageInput
|
||||
label={$t('form.profile.data.banner')}
|
||||
bind:files={bannerImage}
|
||||
/>
|
||||
<ImageInput label={$t('form.profile.avatar')} bind:files={profileImage} />
|
||||
<ImageInput label={$t('form.profile.banner')} bind:files={bannerImage} />
|
||||
</div>
|
||||
<TextInput
|
||||
label={$t('form.profile.data.matrix')}
|
||||
label={$t('form.profile.matrix')}
|
||||
bind:value={formData.matrix_user_id}
|
||||
placeholder="@user:example.com"
|
||||
/>
|
||||
<Switch bind:checked={formData.show_nsfw}>
|
||||
{$t('form.profile.data.showNSFW')}
|
||||
{$t('form.profile.showNSFW')}
|
||||
</Switch>
|
||||
<Switch bind:checked={formData.show_scores}>
|
||||
{$t('form.profile.data.scores')}
|
||||
{$t('form.profile.scores')}
|
||||
</Switch>
|
||||
<Switch bind:checked={formData.bot_account}>
|
||||
{$t('form.profile.data.bot')}
|
||||
{$t('form.profile.bot')}
|
||||
</Switch>
|
||||
<Switch bind:checked={formData.show_bot_accounts}>
|
||||
{$t('form.profile.data.showBots')}
|
||||
{$t('form.profile.showBots')}
|
||||
</Switch>
|
||||
<Switch bind:checked={formData.show_read_posts}>
|
||||
{$t('form.profile.data.showRead')}
|
||||
{$t('form.profile.showRead')}
|
||||
</Switch>
|
||||
<div class="space-y-1">
|
||||
<SectionTitle>{$t('form.profile.data.languages.title')}</SectionTitle>
|
||||
<p>{$t('form.profile.data.languages.description')}</p>
|
||||
<SectionTitle>{$t('form.profile.languages.title')}</SectionTitle>
|
||||
<p>{$t('form.profile.languages.description')}</p>
|
||||
<Material rounding="xl" color="uniform" class="dark:bg-zinc-950">
|
||||
{#if $site && formData.discussion_languages}
|
||||
<div class="flex gap-2 flex-wrap flex-row">
|
||||
|
||||
Reference in new issue
Block a user