public UserModel(UserRegistrationDto registrationDto) { // RuleEngine engine = new RuleEngine(); // https://msdn.microsoft.com/pl-pl/library/aa561216.aspx Username = registrationDto.Username; Email = registrationDto.Email; Password = MdoSecurity.CreateHashedPassword(registrationDto.Password); Secret = MdoSecurity.CreateSecret(); }
private void PopulateUsers() { var passwordToStore = MdoSecurity.CreateHashedPassword(StdPassword); Users.Add(new UserEntity() { Email = StdEmail, Username = StdUsername, UserId = StdId, Password = passwordToStore }); }
static UserWarehouse() { var passwordToStore = MdoSecurity.CreateHashedPassword(StdPassword); Users.Add(new UserEntity() { Email = StdEmail, Username = StdUsername, UserId = StdId, Password = passwordToStore }); }