Ejemplo n.º 1
0
 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
                             };
 }
Ejemplo n.º 2
0
Archivo: TMUser.cs Proyecto: 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
                             };
 }
Ejemplo n.º 3
0
        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
                                    };
        }