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 }; }
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 }; }
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 }; }