Example #1
0
        protected override User CreateEntity(UserDto userDto)
        {
            User user = base.CreateEntity(userDto);

            if (!EntityExists(userDto))
            {
                user.Password = PasswordUtils.ComputeHash(PasswordUtils.CreateRandomPassword());
                user.Order    = _userDao.FindMaxOrderValue() + 1;
            }
            return(user);
        }