Search K
Appearance
A PasswordField
represents a password with the underlying type string
. It can be used in an Identity resource to set passwords when creating new users. However, you can also use it in other scenarios if you need a field containing hidden information.
Adding the field to a resource:
using Linkerion.Centias.Displayables.Fields.PasswordField;
public ExampleResource : Resource<DbContext, ExampleEntity, int>
{
public override IList<IShowOnPageBuilder> Fields() =>
[
PasswordField.Make("User Password", "Password")
];
}
As a password contains sensitive information, it won't be displayed on any page except when creating a new entity.
Visibility flag | Default value |
---|---|
ShowOnIndex | false |
ShowOnCreate | true |
ShowOnUpdate | false |
ShowOnDetails | false |