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
							
								
									2994f6d168
								
							
						
					
					
						commit
						3994b4cf48
					
				@ -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,
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user