mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 14:08:44 -04:00
Fix 500 error causing first-time setup wizard to hang
This commit is contained in:
parent
e75b2cd335
commit
3bc07e7c56
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,4 @@
|
||||||
|
using System.Security.Authentication;
|
||||||
using System.Security.Claims;
|
using System.Security.Claims;
|
||||||
using System.Text.Encodings.Web;
|
using System.Text.Encodings.Web;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
@ -59,6 +60,10 @@ namespace Jellyfin.Api.Auth
|
||||||
|
|
||||||
return Task.FromResult(AuthenticateResult.Success(ticket));
|
return Task.FromResult(AuthenticateResult.Success(ticket));
|
||||||
}
|
}
|
||||||
|
catch (AuthenticationException ex)
|
||||||
|
{
|
||||||
|
return Task.FromResult(AuthenticateResult.Fail(ex));
|
||||||
|
}
|
||||||
catch (SecurityException ex)
|
catch (SecurityException ex)
|
||||||
{
|
{
|
||||||
return Task.FromResult(AuthenticateResult.Fail(ex));
|
return Task.FromResult(AuthenticateResult.Fail(ex));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue