示例#1
0
 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();
 }
示例#2
0
        private void PopulateUsers()
        {
            var passwordToStore = MdoSecurity.CreateHashedPassword(StdPassword);

            Users.Add(new UserEntity()
            {
                Email    = StdEmail,
                Username = StdUsername,
                UserId   = StdId,
                Password = passwordToStore
            });
        }
示例#3
0
        static UserWarehouse()
        {
            var passwordToStore = MdoSecurity.CreateHashedPassword(StdPassword);

            Users.Add(new UserEntity()
            {
                Email    = StdEmail,
                Username = StdUsername,
                UserId   = StdId,
                Password = passwordToStore
            });
        }