aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-10-24 20:36:42 +0800
committer杨宇千 <crupest@outlook.com>2019-10-24 20:36:42 +0800
commit36a68c37295b450745a651d3f636c4c5f1432c21 (patch)
tree3801494ac6de5f52b2b80e5907dc59e5d5e46980
parent4ab69665f26aaa59bad8684e6b801b4c4cf900cd (diff)
downloadtimeline-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.
-rw-r--r--Timeline/Authentication/AuthHandler.cs2
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);