diff options
| author | Joshua M. Boniface <joshua@boniface.me> | 2019-04-20 12:20:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-20 12:20:22 -0400 |
| commit | 6797bdec04f00c7b215cd2db988440fdd1a4fb78 (patch) | |
| tree | e4833bee270863507e897bfb58e500caefe62bb1 | |
| parent | 46c37c0ae8d5b5de02ff6f8208a7b91436f54237 (diff) | |
| parent | 764c6d5461ff359f50ab76a60589d871545eec2a (diff) | |
Merge pull request #1264 from jellyfin/fix-empty-pw-migration
Fix comparison for empty password migration
| -rw-r--r-- | Emby.Server.Implementations/Data/SqliteUserRepository.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Emby.Server.Implementations/Data/SqliteUserRepository.cs b/Emby.Server.Implementations/Data/SqliteUserRepository.cs index 182df0edc..5957b2903 100644 --- a/Emby.Server.Implementations/Data/SqliteUserRepository.cs +++ b/Emby.Server.Implementations/Data/SqliteUserRepository.cs @@ -81,7 +81,7 @@ namespace Emby.Server.Implementations.Data { // If the user password is the sha1 hash of the empty string, remove it if (!string.Equals(user.Password, "DA39A3EE5E6B4B0D3255BFEF95601890AFD80709", StringComparison.Ordinal) - || !string.Equals(user.Password, "$SHA1$DA39A3EE5E6B4B0D3255BFEF95601890AFD80709", StringComparison.Ordinal)) + && !string.Equals(user.Password, "$SHA1$DA39A3EE5E6B4B0D3255BFEF95601890AFD80709", StringComparison.Ordinal)) { continue; } |
