public void Handle(CreateUser c) { var salt = _crypto.GenerateSalt(); var id = _crypto.GetMd5Hash(c.Email); _repository.Perform(id, user => user.Create( id, c.UserName, _crypto.GetPasswordHash(c.Password, salt), salt, c.Email, c.FacebookId)); }
public void Handle(CreateUser c) { var salt = _crypto.GenerateSalt(); var id = _crypto.GetMd5Hash(c.Email); _repository.Perform(id, user => user.Create( id, c.UserName, _crypto.GetPasswordHash(c.Password, salt), salt, c.Email, c.FacebookId)); }