aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserService.cs
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-01 21:22:55 +0800
committer杨宇千 <crupest@outlook.com>2019-08-01 21:22:55 +0800
commit2ef31740d62a415e7df59f22c450ae954ee97193 (patch)
tree234ec46171bb5d86d8ff569e69cdd41807df7ef7 /Timeline/Services/UserService.cs
parent85d25348c9d6ad527b86c57fd5023829c8b9d6bf (diff)
downloadtimeline-2ef31740d62a415e7df59f22c450ae954ee97193.tar.gz
timeline-2ef31740d62a415e7df59f22c450ae954ee97193.tar.bz2
timeline-2ef31740d62a415e7df59f22c450ae954ee97193.zip
Expired token now has a unique code.
Diffstat (limited to 'Timeline/Services/UserService.cs')
-rw-r--r--Timeline/Services/UserService.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/Timeline/Services/UserService.cs b/Timeline/Services/UserService.cs
index c63ded1e..3164a645 100644
--- a/Timeline/Services/UserService.cs
+++ b/Timeline/Services/UserService.cs
@@ -208,6 +208,9 @@ namespace Timeline.Services
public async Task<UserInfo> VerifyToken(string token)
{
+ if (token == null)
+ throw new ArgumentNullException(nameof(token));
+
TokenInfo tokenInfo;
try
{