Browse Source

little fixes for JustAMan

Phallacy 6 năm trước cách đây
mục cha
commit
56e3063342

+ 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);