diff options
| author | Bond_009 <bond.009@outlook.com> | 2019-09-20 12:42:08 +0200 |
|---|---|---|
| committer | Bond_009 <bond.009@outlook.com> | 2019-09-23 20:32:44 +0200 |
| commit | c9820d30edf1cb8fa99a52ec72b6571d6d4506f7 (patch) | |
| tree | 9a479536e6d18d3a2e9a8d253c4d3846d3d2aceb /Emby.Server.Implementations/Library/UserManager.cs | |
| parent | b8fd6a7ec3e49298ffacc6da96d59ae03a593cd3 (diff) | |
Fix multiple mistakes and warnings
Diffstat (limited to 'Emby.Server.Implementations/Library/UserManager.cs')
| -rw-r--r-- | Emby.Server.Implementations/Library/UserManager.cs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Emby.Server.Implementations/Library/UserManager.cs b/Emby.Server.Implementations/Library/UserManager.cs index ac6b4a209..52b2f56ff 100644 --- a/Emby.Server.Implementations/Library/UserManager.cs +++ b/Emby.Server.Implementations/Library/UserManager.cs @@ -273,14 +273,12 @@ namespace Emby.Server.Implementations.Library var user = Users.FirstOrDefault(i => string.Equals(username, i.Name, StringComparison.OrdinalIgnoreCase)); var success = false; - string updatedUsername = null; IAuthenticationProvider authenticationProvider = null; if (user != null) { var authResult = await AuthenticateLocalUser(username, password, hashedPassword, user, remoteEndPoint).ConfigureAwait(false); authenticationProvider = authResult.authenticationProvider; - updatedUsername = authResult.username; success = authResult.success; } else @@ -288,7 +286,7 @@ namespace Emby.Server.Implementations.Library // user is null var authResult = await AuthenticateLocalUser(username, password, hashedPassword, null, remoteEndPoint).ConfigureAwait(false); authenticationProvider = authResult.authenticationProvider; - updatedUsername = authResult.username; + string updatedUsername = authResult.username; success = authResult.success; if (success |
