Exemple #1
0
 public User CreateUser(User user)
 {
     user.Salt     = encryptionManager.createSalt();
     user.Password = encryptionManager.createHash(user.Password, user.Salt);
     Create(user);
     Save();
     return(user);
 }