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