aboutsummaryrefslogtreecommitdiff
path: root/Timeline
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
commit8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d (patch)
tree3801494ac6de5f52b2b80e5907dc59e5d5e46980 /Timeline
parent7305358a88ffc87f51f7b78deb4f07ef99120beb (diff)
downloadtimeline-8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d.tar.gz
timeline-8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d.tar.bz2
timeline-8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d.zip
Fix a bug in auth handler. This is caused by my confusion in C# language.
Diffstat (limited to 'Timeline')
-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);