mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-28 03:26:46 -05:00
feat: add birthday field to register page
This commit is contained in:
@@ -16,7 +16,7 @@ const loginURI = computed(() => {
|
||||
return `/account/login`;
|
||||
});
|
||||
|
||||
const registerForm = reactive({ email: '', username: '', mii_name: '', password: '', password_confirm: '' });
|
||||
const registerForm = reactive({ email: '', username: '', mii_name: '', birthday: '', password: '', password_confirm: '' });
|
||||
const captchaRef = useTemplateRef('captcha');
|
||||
|
||||
const { execute, isLoading } = useAsync({
|
||||
@@ -36,6 +36,7 @@ const { execute, isLoading } = useAsync({
|
||||
miiName: registerForm.mii_name,
|
||||
password: registerForm.password,
|
||||
username: registerForm.username,
|
||||
birthday: registerForm.birthday,
|
||||
captchaResponse: captchaResponse ?? undefined
|
||||
} satisfies ApiAuthRegisterRequest
|
||||
});
|
||||
@@ -95,6 +96,16 @@ const { execute, isLoading } = useAsync({
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label for="mii_name">{{ $t("account.loginForm.birthdate") }}</label>
|
||||
<input
|
||||
id="birthday"
|
||||
v-model="registerForm.birthday"
|
||||
name="birthday"
|
||||
type="date"
|
||||
required
|
||||
>
|
||||
</div>
|
||||
<div>
|
||||
<label for="password">{{ $t("account.loginForm.password") }}</label>
|
||||
<input
|
||||
|
||||
Reference in New Issue
Block a user