From 88019a42c9a7bd0afee42373789d0aaeec37da5d Mon Sep 17 00:00:00 2001 From: Valentin Tolmer Date: Mon, 11 Oct 2021 20:31:35 +0200 Subject: [PATCH] app: Add a proper error message to the email field --- app/src/components/create_user.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/components/create_user.rs b/app/src/components/create_user.rs index 1dbabaa..3dd59bd 100644 --- a/app/src/components/create_user.rs +++ b/app/src/components/create_user.rs @@ -33,7 +33,7 @@ pub struct CreateUserForm { pub struct CreateUserModel { #[validate(length(min = 1, message = "Username is required"))] username: String, - #[validate(email)] + #[validate(email(message = "A valid email is required"))] email: String, #[validate(length(min = 1, message = "Display name is required"))] display_name: String,