This commit is contained in:
mike12345567 2021-01-07 15:39:49 +00:00
parent 85320ea938
commit 63c092799f
1 changed files with 3 additions and 12 deletions

View File

@ -58,20 +58,14 @@
email: string() email: string()
.email() .email()
.required("Your application needs a first user."), .required("Your application needs a first user."),
password: string().required( password: string().required("Please enter a password for your first user."),
"Please enter a password for your first user."
),
roleId: string().required("You need to select a role for your user."), roleId: string().required("You need to select a role for your user."),
} }
let submitting = false let submitting = false
let errors = {} let errors = {}
let validationErrors = {} let validationErrors = {}
let validationSchemas = [ let validationSchemas = [apiValidation, infoValidation, userValidation]
apiValidation,
infoValidation,
userValidation,
]
function buildStep(component) { function buildStep(component) {
return { return {
@ -89,10 +83,7 @@
if (hostingInfo.type === "self") { if (hostingInfo.type === "self") {
isApiKeyValid = true isApiKeyValid = true
steps = [buildStep(Info), buildStep(User)] steps = [buildStep(Info), buildStep(User)]
validationSchemas = [ validationSchemas = [infoValidation, userValidation]
infoValidation,
userValidation,
]
} }
}) })