From 40c424f787351b5e2e89aabedb5e67bfeece7008 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 20:01:25 -0400 Subject: even more profile fields --- Project-Unite/Models/IdentityModels.cs | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'Project-Unite/Models/IdentityModels.cs') diff --git a/Project-Unite/Models/IdentityModels.cs b/Project-Unite/Models/IdentityModels.cs index a16dfe7..9e3898b 100644 --- a/Project-Unite/Models/IdentityModels.cs +++ b/Project-Unite/Models/IdentityModels.cs @@ -45,6 +45,18 @@ namespace Project_Unite.Models public int Pong_HighestCodepointsCashout { get; set; } + #region Privacy + + public bool ShowFollowers { get; set; } + public bool ShowFollowed { get; set; } + public bool ShowEmail { get; set; } + public bool ShowPostAndTopicCounts { get; set; } + public bool ShowJoinDate { get; set; } + + + #endregion + + public ForumPost[] UnreadPosts { get @@ -141,13 +153,20 @@ namespace Project_Unite.Models public string BannerUrl { get; set; } public string AvatarUrl { get; set; } + [Required(AllowEmptyStrings = false, ErrorMessage ="You must enter a display name.")] + [MinLength(5, ErrorMessage ="Your display name must be at least 5 characters long.")] public string DisplayName { get; set; } + public string FullName { get; set; } + public string Website { get; set; } public string YoutubeUrl { get; set; } public string SystemName { get; set; } - + + [AllowHtml] public string Interests { get; set; } + + [AllowHtml] public string Hobbies { get; set; } -- cgit v1.2.3