diff options
| author | dkanada <dkanada@users.noreply.github.com> | 2019-11-23 01:14:32 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-23 01:14:32 +0900 |
| commit | 51cdc6ea166b6eae7f060ce05c74e83b34a94976 (patch) | |
| tree | bc01564b696fb4bc323b547fdd03e2fe7893f93f /MediaBrowser.Common/Cryptography/PasswordHash.cs | |
| parent | 7b3c394a3e3df291a54811085dd0d32fc243f397 (diff) | |
| parent | d7335f6ae6c9cb2b5000ca9be9c8b7f6f268af2a (diff) | |
Merge pull request #1926 from Bond-009/auth
Add clearer exceptions, warnings and docs
Diffstat (limited to 'MediaBrowser.Common/Cryptography/PasswordHash.cs')
| -rw-r--r-- | MediaBrowser.Common/Cryptography/PasswordHash.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Common/Cryptography/PasswordHash.cs b/MediaBrowser.Common/Cryptography/PasswordHash.cs index 4c6804097..19b8be47a 100644 --- a/MediaBrowser.Common/Cryptography/PasswordHash.cs +++ b/MediaBrowser.Common/Cryptography/PasswordHash.cs @@ -60,13 +60,13 @@ namespace MediaBrowser.Common.Cryptography /// <value>Return the hashed password.</value> public byte[] Hash { get; } - public static PasswordHash Parse(string storageString) + public static PasswordHash Parse(string hashString) { - string[] splitted = storageString.Split('$'); + string[] splitted = hashString.Split('$'); // The string should at least contain the hash function and the hash itself if (splitted.Length < 3) { - throw new ArgumentException("String doesn't contain enough segments", nameof(storageString)); + throw new ArgumentException("String doesn't contain enough segments", nameof(hashString)); } // Start at 1, the first index shouldn't contain any data |
