Exemplo n.º 1
0
        public override User Create(User user)
        {
            Validate(user);

            // generate salt key and hash password
            user.Salt        = SecurityExtensions.GenerateSalt();
            user.Password    = user.Password.Hash(user.Salt);
            user.DateCreated = DateTime.Now;
            return(repo.Create(user));
        }