diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-24 20:36:42 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-24 20:36:42 +0800 |
commit | 36a68c37295b450745a651d3f636c4c5f1432c21 (patch) | |
tree | 3801494ac6de5f52b2b80e5907dc59e5d5e46980 /Timeline/Authentication/AuthHandler.cs | |
parent | 4ab69665f26aaa59bad8684e6b801b4c4cf900cd (diff) | |
download | timeline-36a68c37295b450745a651d3f636c4c5f1432c21.tar.gz timeline-36a68c37295b450745a651d3f636c4c5f1432c21.tar.bz2 timeline-36a68c37295b450745a651d3f636c4c5f1432c21.zip |
Fix a bug in auth handler. This is caused by my confusion in C# language.
Diffstat (limited to 'Timeline/Authentication/AuthHandler.cs')
-rw-r--r-- | Timeline/Authentication/AuthHandler.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Authentication/AuthHandler.cs b/Timeline/Authentication/AuthHandler.cs index 47ed1d71..602a44db 100644 --- a/Timeline/Authentication/AuthHandler.cs +++ b/Timeline/Authentication/AuthHandler.cs @@ -88,7 +88,7 @@ namespace Timeline.Authentication return AuthenticateResult.Success(new AuthenticationTicket(principal, AuthConstants.Scheme));
}
- catch (Exception e) when (e! is ArgumentException)
+ catch (Exception e) when (!(e is ArgumentException))
{
_logger.LogInformation(e, Resources.Authentication.AuthHandler.LogTokenValidationFail);
return AuthenticateResult.Fail(e);
|