mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-23 23:20:51 +01:00
Apply review suggestions
This commit is contained in:
parent
368f9202ce
commit
4bb17039d7
6 changed files with 16 additions and 16 deletions
|
|
@ -1463,7 +1463,7 @@ namespace Emby.Server.Implementations.Session
|
|||
|
||||
if (user is null)
|
||||
{
|
||||
await _eventManager.PublishAsync(new GenericEventArgs<AuthenticationRequestEventArgs>(new AuthenticationRequestEventArgs(request))).ConfigureAwait(false);
|
||||
await _eventManager.PublishAsync(new AuthenticationRequestEventArgs(request)).ConfigureAwait(false);
|
||||
throw new AuthenticationException("Invalid username or password entered.");
|
||||
}
|
||||
|
||||
|
|
@ -1499,7 +1499,7 @@ namespace Emby.Server.Implementations.Session
|
|||
ServerId = _appHost.SystemId
|
||||
};
|
||||
|
||||
await _eventManager.PublishAsync(new GenericEventArgs<AuthenticationResultEventArgs>(new AuthenticationResultEventArgs(returnResult))).ConfigureAwait(false);
|
||||
await _eventManager.PublishAsync(new AuthenticationResultEventArgs(returnResult)).ConfigureAwait(false);
|
||||
return returnResult;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue