Local Passwords validation
This commit is contained in:
@ -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; }
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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; }
|
||||
}
|
||||
}
|
||||
|
12
src/Yavsc.Server/Models/Relationship/StaticContact.cs
Normal file
12
src/Yavsc.Server/Models/Relationship/StaticContact.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user