mirror of
https://github.com/lldap/lldap.git
synced 2026-07-25 17:58:44 +00:00
app: Add a proper error message to the email field
This commit is contained in:
committed by
nitnelave
parent
29832574c1
commit
88019a42c9
@@ -33,7 +33,7 @@ pub struct CreateUserForm {
|
|||||||
pub struct CreateUserModel {
|
pub struct CreateUserModel {
|
||||||
#[validate(length(min = 1, message = "Username is required"))]
|
#[validate(length(min = 1, message = "Username is required"))]
|
||||||
username: String,
|
username: String,
|
||||||
#[validate(email)]
|
#[validate(email(message = "A valid email is required"))]
|
||||||
email: String,
|
email: String,
|
||||||
#[validate(length(min = 1, message = "Display name is required"))]
|
#[validate(length(min = 1, message = "Display name is required"))]
|
||||||
display_name: String,
|
display_name: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user