Working on new version of website

Signed-off-by: Arthur DANJOU <arthurdanjou@outlook.fr>
This commit is contained in:
2021-08-05 15:26:36 +02:00
parent ed17d86913
commit 721eb3addc
43 changed files with 525 additions and 320 deletions

View File

@@ -2,7 +2,9 @@ import {HttpContextContract} from '@ioc:Adonis/Core/HttpContext'
import {rules, schema} from '@ioc:Adonis/Core/Validator'
export default class GuestValidator {
constructor (private ctx: HttpContextContract) {
public messages = {
required: 'The field {{field}} is required',
'email.email': 'The email is not correct'
}
public schema = schema.create({
@@ -14,9 +16,6 @@ export default class GuestValidator {
])
})
public cacheKey = this.ctx.routeKey
public messages = {
required: 'Le champ {{field}} doit être valide !',
constructor (protected ctx: HttpContextContract) {
}
}