feat: add user dashboard, profile management, and password reset pages.

This commit is contained in:
supalerk-ar66 2026-02-02 16:33:51 +07:00
parent ec67c7c6b6
commit 0ec99b140a
3 changed files with 59 additions and 39 deletions

View file

@ -61,7 +61,8 @@ const phoneRules = [
]
const passwordRules = [
(val: string) => !!val || t('common.required'),
(val: string) => val.length >= 6 || t('common.passwordTooShort')
(val: string) => val.length >= 6 || t('common.passwordTooShort'),
(val: string) => val !== passwordForm.currentPassword || 'รหัสผ่านใหม่ต้องไม่ซ้ำกับรหัสผ่านปัจจุบัน'
]
const confirmPasswordRules = [
(val: string) => !!val || t('common.required'),
@ -442,7 +443,7 @@ onMounted(() => {
:type="showCurrentPassword ? 'text' : 'password'"
outlined dense rounded
class="premium-q-input"
placeholder="••••••••"
placeholder=""
:rules="[val => !!val || $t('common.required')]"
>
<template v-slot:append>