Skip to content

Commit

Permalink
feat: require nickname during registration
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangt2333 committed Feb 25, 2024
1 parent 0dada8b commit 19ffdde
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/components/form/register/AccountRegisterForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@
placeholder="Your login handler"
style="width: 280px" />
</FormItem>
<FormItem prop="nickname" label="Nickname">
<Input
v-model="registerForm.nickname"
placeholder="Your nickname"
style="width: 280px" />
</FormItem>
<FormItem prop="password" label="Password">
<Input
v-model="registerForm.password"
Expand Down Expand Up @@ -105,6 +111,7 @@ export default {
return {
registerForm: {
username: '',
nickname: '',
email: '',
emailCode: '',
password: '',
Expand All @@ -115,6 +122,9 @@ export default {
{ required: true, trigger: 'blur' },
{ validator: validateUsername, trigger: 'blur' }
],
nickname: [
{ required: true, trigger: 'blur' }
],
email: [
{ required: true, type: 'email', trigger: 'blur' },
{ validator: validateEmail, trigger: 'blur' }
Expand Down

0 comments on commit 19ffdde

Please sign in to comment.