Started testing tag component
This commit is contained in:
@@ -51,6 +51,9 @@
|
|||||||
configuration.WithField(x => x.Email);
|
configuration.WithField(x => x.Email);
|
||||||
configuration.WithField(x => x.Password)
|
configuration.WithField(x => x.Password)
|
||||||
.WithComponent<StringComponent>(component => component.Type = "password");
|
.WithComponent<StringComponent>(component => component.Type = "password");
|
||||||
|
|
||||||
|
configuration.WithField(x => x.PermissionsJson)
|
||||||
|
.WithComponent<TagComponent>();
|
||||||
};
|
};
|
||||||
|
|
||||||
crudOptions.OnConfigureUpdate = (_, configuration) =>
|
crudOptions.OnConfigureUpdate = (_, configuration) =>
|
||||||
|
|||||||
@@ -16,4 +16,6 @@ public class CreateUserRequest
|
|||||||
[MinLength(8, ErrorMessage = "Your password needs to be at least 8 characters long")]
|
[MinLength(8, ErrorMessage = "Your password needs to be at least 8 characters long")]
|
||||||
[MaxLength(256, ErrorMessage = "Your password should not exceed the length of 256 characters")]
|
[MaxLength(256, ErrorMessage = "Your password should not exceed the length of 256 characters")]
|
||||||
public string Password { get; set; }
|
public string Password { get; set; }
|
||||||
|
|
||||||
|
public string PermissionsJson { get; set; } = "[]";
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user