Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Commit 2d58f94

Browse files
committed
changes validation on student email optional
1 parent f611dc4 commit 2d58f94

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/views/Accounts/Register/index.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,9 @@ export default {
162162
studentEmail: {
163163
label: "Student's E-mail Address (optional)",
164164
type: "email",
165-
value: ""
165+
rules: [
166+
v => !v || validateEmail(v) || "Please provide a valid e-mail"
167+
]
166168
},
167169
password: {
168170
label: "Password",

0 commit comments

Comments
 (0)