mirror of
https://github.com/nitnelave/lldap.git
synced 2023-04-12 14:25:13 +00:00
app: Add a proper error message to the email field
This commit is contained in:
parent
29832574c1
commit
88019a42c9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user