瀏覽代碼

Merge pull request #1264 from jellyfin/fix-empty-pw-migration

Fix comparison for empty password migration
Joshua M. Boniface 6 年之前
父節點
當前提交
6797bdec04
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Emby.Server.Implementations/Data/SqliteUserRepository.cs

+ 1 - 1
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;
                 }