release: v1.0.4
Publish Docker image / build (linux/amd64, ubuntu-latest, amd64) (push) Canceled after 0s
Publish Docker image / build (linux/arm64, ubuntu-24.04-arm, arm64) (push) Canceled after 0s
Publish Docker image / merge (push) Canceled after 0s
ci / ci (22, ubuntu-latest) (push) Canceled after 0s
GitHub Release / release (push) Canceled after 0s

Add PasswordInput with show/hide toggle, align legacy setup/register
routing, merge duplicate i18n keys, and remove unused jose dependency.
This commit is contained in:
O96u committed 2026-08-25 16:11:50 +08:00
1 parent 661146ce20
commit 7c45a78572
13 files changed
+107 -70

No files matched your search

+2 -15
View File
@@ -2,10 +2,6 @@
import logoLight from '~/assets/image/logo-light.png'
import logoDark from '~/assets/image/logo-dark.png'
const emit = defineEmits<{
success: []
}>()
const router = useRouter()
const { login, fetchStatus, authStatus } = useAuth()
const toast = useToast()
@@ -47,7 +43,6 @@ async function submit() {
username.value = ''
password.value = ''
secret.value = ''
emit('success')
toast.add({ title: t('auth.loginSuccess'), color: 'success' })
} else {
toast.add({
@@ -108,15 +103,11 @@ async function submit() {
>
{{ t('auth.adminSecret') }}
</label>
<UInput
<PasswordInput
id="admin-secret"
v-model="secret"
type="password"
:placeholder="t('auth.adminSecretPlaceholder')"
autocomplete="current-password"
size="lg"
class="w-full"
:ui="{ root: 'w-full' }"
@keyup.enter="submit"
/>
<p class="text-xs leading-relaxed text-muted">
@@ -151,15 +142,11 @@ async function submit() {
>
{{ t('auth.password') }}
</label>
<UInput
<PasswordInput
id="login-password"
v-model="password"
type="password"
:placeholder="t('auth.password')"
autocomplete="current-password"
size="lg"
class="w-full"
:ui="{ root: 'w-full' }"
@keyup.enter="submit"
/>
</div>