예제 #1
0
파일: TMUser.cs 프로젝트: TeamMentor/Dev
 public TMUser()
 {
     ID = Guid.NewGuid();
     UserTags        = new List<UserTag>();
     SecretData      = new UserSecretData
                             {
                                 PasswordResetToken  = null,                  // default to Null
                                 EnableUserToken = Guid.Empty
                             };
     Sessions        = new List<UserSession>();
     AuthTokens      = new List<AuthToken>();
     UserActivities  = new List<UserActivity>();
     AccountStatus   = TMConfig.Current.isNull()
                             ? new UserAccountStatus()
                             : new UserAccountStatus
                                     {
                                         ExpirationDate      = default(DateTime), //TMConfig.Current.currentExpirationDate(),
                                         PasswordExpired     = false,
                                         AccountNeverExpires = TMConfig.Current.TMSecurity.NewAccounts_DontExpire,
                                         UserEnabled         = TMConfig.Current.TMSecurity.NewAccounts_Enabled //TMConfig.Current.newAccountsEnabled()
                                     };
     Stats           = new UserStats
                             {
                                 CreationDate = DateTime.Now
                             };
 }
예제 #2
0
파일: TMUser.cs 프로젝트: sempf/Dev
 public TMUser()
 {
     ID = Guid.NewGuid();
     SecretData      = new UserSecretData();
     UserActivities  = new List<UserActivity>();
     AccountStatus   = new UserAccountStatus
                             {
                                 ExpirationDate  = DateTime.Now.AddDays(TMConfig.Current.TMSecurity.EvalAccounts_Days),
                                 PasswordExpired = false,
                                 UserEnabled     = true
                             };
     Stats           = new UserStats
                             {
                                 CreationDate = DateTime.Now
                             };
 }
예제 #3
0
파일: TMUser.cs 프로젝트: sarvaje/Master
        public TMUser()
        {
            ID = Guid.NewGuid();
            SecretData      = new UserSecretData
                                    {
                                        //SingleUseLoginToken = Guid.NewGuid(),
                                        PasswordResetToken  = null                  // default to Null
                                    };

            UserActivities  = new List<UserActivity>();
            AccountStatus   = new UserAccountStatus
                                    {
                                        ExpirationDate  = TMConfig.Current.currentExpirationDate(),
                                        PasswordExpired = false,
                                        UserEnabled     = true
                                    };
            Stats           = new UserStats
                                    {
                                        CreationDate = DateTime.Now
                                    };
        }