Преглед на файлове

little fixes for JustAMan

Phallacy преди 6 години
родител
ревизия
56e3063342
променени са 1 файла, в които са добавени 1 реда и са изтрити 2 реда
  1. 1 2
      Emby.Server.Implementations/Cryptography/CryptographyProvider.cs

+ 1 - 2
Emby.Server.Implementations/Cryptography/CryptographyProvider.cs

@@ -132,8 +132,7 @@ namespace Emby.Server.Implementations.Cryptography
                 }
                 catch (Exception e)
                 {
-                    iterations = defaultiterations;
-                    throw new Exception($"Couldn't successfully parse iterations value from string:{hash.Parameters["iterations"]}", e);
+                    throw new InvalidDataException($"Couldn't successfully parse iterations value from string: {hash.Parameters["iterations"]}", e);
                 }
             }
             return PBKDF2(hash.Id, hash.HashBytes, hash.SaltBytes, iterations);