Local Passwords validation

This commit is contained in:
Paul Schneider
2024-11-06 13:00:34 +00:00
parent 39f98229eb
commit 2043dbfce6
163 changed files with 1824 additions and 4784 deletions

View File

@ -1,20 +1,29 @@
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Yavsc.Models.Auth
{
public class Client
{
[Key]
[Key][Required][DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public string Id { get; set; }
[Required]
[MaxLength(128)]
public string DisplayName { get; set; }
public string RedirectUri { get; set; }
[MaxLength(100)]
[MaxLength(512)]
public string? RedirectUri { get; set; }
[MaxLength(512)]
public string LogoutRedirectUri { get; set; }
[MaxLength(512)]
public string Secret { get; set; }
public ApplicationTypes Type { get; set; }
public bool Active { get; set; }
public int RefreshTokenLifeTime { get; set; }
public int AccessTokenLifetime { get; set; }
}
}

View File

@ -4,7 +4,7 @@ using Yavsc.Attributes.Validation;
namespace Yavsc.Models.Messaging
{
public class DimissClicked
public class DismissClicked
{
[YaRequired]
public string UserId { get; set; }
@ -19,4 +19,4 @@ namespace Yavsc.Models.Messaging
public virtual Notification Notified { get; set; }
}
}
}

View File

@ -7,10 +7,10 @@ namespace Yavsc.Models.Relationship
{
public class Contact: IContact
{
[YaRequired()]
[Required()]
public string UserId { get; set; }
[YaRequired()]
[Required()]
public string OwnerId { get; set; }
public string Name { get; set; }
@ -22,10 +22,10 @@ namespace Yavsc.Models.Relationship
public virtual PostalAddress PostalAddress { get; set; }
[ForeignKeyAttribute("OwnerId"),NotMapped]
[ForeignKey("OwnerId"),NotMapped]
public virtual ApplicationUser Owner { get; set; }
[ForeignKeyAttribute("UserId"),NotMapped]
[ForeignKey("UserId"),NotMapped]
public virtual ApplicationUser User { get; set; }
}
}

View File

@ -0,0 +1,12 @@
namespace Yavsc.Models.Relationship
{
public class StaticContact
{
public string Name { get; set; }
public string EMail { get; set; }
public PostalAddress? PostalAddress { get; set; }
}
}