Esempio 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
     };
 }
Esempio n. 2
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
                             };
 }
Esempio n. 3
0
File: TMUser.cs Progetto: 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
                             };
 }
Esempio n. 4
0
 public TMUser()
 {
     ID         = Guid.NewGuid();
     SecretData = new UserSecretData
     {
         //SingleUseLoginToken = Guid.NewGuid(),
         PasswordResetToken = null                                           // default to Null
     };
     Sessions       = new List <UserSession>();
     UserActivities = new List <UserActivity>();
     AccountStatus  = new UserAccountStatus
     {
         ExpirationDate  = TMConfig.Current.currentExpirationDate(),
         PasswordExpired = false,
         UserEnabled     = true
     };
     Stats = new UserStats
     {
         CreationDate = DateTime.Now
     };
 }
Esempio n. 5
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
                                    };
        }