[ADD] Added verifiers, validators & config.

This commit is contained in:
max
2024-12-23 01:26:21 +01:00
parent 797323789e
commit 5c4ebd2b32
12 changed files with 57 additions and 6 deletions

View File

@@ -2,7 +2,7 @@ namespace DotBased.AspNet.Authority.Models.Authority;
public class AuthorityAttribute
{
public AuthorityAttribute(string attributeKey, string bound) : this()
public AuthorityAttribute(string attributeKey, string bound)
{
AttributeKey = attributeKey;
BoundId = bound;
@@ -10,7 +10,8 @@ public class AuthorityAttribute
public AuthorityAttribute()
{
AttributeKey = string.Empty;
BoundId = string.Empty;
}
public string AttributeKey { get; set; } // ClaimType/Authority.attribute.enabled

View File

@@ -2,7 +2,7 @@ namespace DotBased.AspNet.Authority.Models.Options;
public class SignInOptions
{
public bool RequireValidatedEmail { get; set; }
public bool RequireValidatedPhoneNumber { get; set; }
public bool RequireVerifiedEmail { get; set; }
public bool RequireVerifiedPhoneNumber { get; set; }
public bool RequireConfirmedAccount { get; set; }
}