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 | 8a76f8d580a6ffc1661b93c332ba4bf6b9e7f20d (patch) | |
tree | 3801494ac6de5f52b2b80e5907dc59e5d5e46980 /Timeline | |
parent | 7305358a88ffc87f51f7b78deb4f07ef99120beb (diff) | |
download | timeline-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.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);
|