The new user is not Admin
This commit is contained in:
@@ -35,6 +35,7 @@ namespace skydiveLogs_api.DomainBusiness
|
|||||||
|
|
||||||
if (foundUser == null)
|
if (foundUser == null)
|
||||||
{
|
{
|
||||||
|
newUser.IsAdmin = false;
|
||||||
result = _userRepository.Add(newUser);
|
result = _userRepository.Add(newUser);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +50,7 @@ namespace skydiveLogs_api.DomainBusiness
|
|||||||
|
|
||||||
using (Aes encryptor = Aes.Create())
|
using (Aes encryptor = Aes.Create())
|
||||||
{
|
{
|
||||||
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(encryptionKey,
|
Rfc2898DeriveBytes pdb = new Rfc2898DeriveBytes(encryptionKey,
|
||||||
new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 });
|
new byte[] { 0x49, 0x76, 0x61, 0x6e, 0x20, 0x4d, 0x65, 0x64, 0x76, 0x65, 0x64, 0x65, 0x76 });
|
||||||
encryptor.Key = pdb.GetBytes(32);
|
encryptor.Key = pdb.GetBytes(32);
|
||||||
encryptor.IV = pdb.GetBytes(16);
|
encryptor.IV = pdb.GetBytes(16);
|
||||||
|
|||||||
Reference in New Issue
Block a user