Patrick Barron 5 년 전
부모
커밋
e8173df9dc
2개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 0 2
      Jellyfin.Server.Implementations/Users/UserManager.cs
  2. 1 2
      Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

+ 0 - 2
Jellyfin.Server.Implementations/Users/UserManager.cs

@@ -2,10 +2,8 @@
 
 using System;
 using System.Collections.Generic;
-using System.Diagnostics;
 using System.Globalization;
 using System.Linq;
-using System.Runtime.InteropServices.ComTypes;
 using System.Text;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;

+ 1 - 2
Jellyfin.Server/Migrations/Routines/MigrateUserDb.cs

@@ -87,14 +87,13 @@ namespace Jellyfin.Server.Migrations.Routines
 
                     policy.PasswordResetProviderId = typeof(DefaultPasswordResetProvider).FullName;
 
-                    var user = new User(mockup.Name, policy.AuthenticationProviderId, string.Empty)
+                    var user = new User(mockup.Name, policy.AuthenticationProviderId, policy.PasswordResetProviderId)
                     {
                         Id = entry[1].ReadGuidFromBlob(),
                         InternalId = entry[0].ToInt64(),
                         MaxParentalAgeRating = policy.MaxParentalRating,
                         EnableUserPreferenceAccess = policy.EnableUserPreferenceAccess,
                         RemoteClientBitrateLimit = policy.RemoteClientBitrateLimit,
-                        PasswordResetProviderId = policy.PasswordResetProviderId,
                         InvalidLoginAttemptCount = policy.InvalidLoginAttemptCount,
                         LoginAttemptsBeforeLockout = policy.LoginAttemptsBeforeLockout == -1 ? null : new int?(policy.LoginAttemptsBeforeLockout),
                         SubtitleMode = config.SubtitleMode,