Webserver: -fix: Password and Roles are not saved.

This commit is contained in:
lukeIam committed 2013-12-13 18:03:19 +01:00
1 parent 60a8c59b7d
commit 304529f396
2 files changed
+14 -3

No files matched your search

+1 -1
View File
@@ -239,7 +239,7 @@ namespace Vocaluxe.Base.Server
else
{
RNGCryptoServiceProvider rng = new RNGCryptoServiceProvider();
byte[] buffer = new byte[128];
byte[] buffer = new byte[32];
rng.GetNonZeroBytes(buffer);
byte[] salt = buffer;
byte[] hashedPassword = _Hash((new UTF8Encoding()).GetBytes(profile.Password), salt);