diff options
| author | Davide Polonio <poloniodavide@gmail.com> | 2020-05-06 17:21:21 +0200 |
|---|---|---|
| committer | Davide Polonio <poloniodavide@gmail.com> | 2020-05-06 17:25:41 +0200 |
| commit | 57cf19f058a12810b0d52dc43d84c1796697ce84 (patch) | |
| tree | fea7720caa7a7f12fd7b3aa4db70f20b390d4a02 /Emby.Server.Implementations/Library/UserManager.cs | |
| parent | 472efeeec4ddf5dbea1550aeea2173590b24953e (diff) | |
Fix variable declaration and follow sonarcloud suggestions
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserManager.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs index 903d43faa..6537a6a86 100644 --- a/Emby.Server.Implementations/Library/UserManager.cs +++ b/Emby.Server.Implementations/Library/UserManager.cs @@ -620,8 +620,9 @@ namespace Emby.Server.Implementations.Library throw new ArgumentNullException(nameof(user)); } - bool hasConfiguredPassword = GetAuthenticationProvider(user).HasPassword(user); - bool hasConfiguredEasyPassword = !string.IsNullOrEmpty(GetAuthenticationProvider(user).GetEasyPasswordHash(user)); + IAuthenticationProvider authenticationProvider = GetAuthenticationProvider(user); + bool hasConfiguredPassword = authenticationProvider.HasPassword(user); + bool hasConfiguredEasyPassword = !string.IsNullOrEmpty(authenticationProvider.GetEasyPasswordHash(user)); bool hasPassword = user.Configuration.EnableLocalPassword && !string.IsNullOrEmpty(remoteEndPoint) && |
