aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserTokenManager.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-02-21 22:50:23 +0800
committercrupest <crupest@outlook.com>2020-02-21 22:50:23 +0800
commit98dabdd9462384353389a6834b9e71a3e40330a2 (patch)
tree1897dc26074fb5b8aba2e2493b4c393279f6d4b4 /Timeline/Services/UserTokenManager.cs
parent77c28a63bdd742a46bcf780ae3819c18b7fbf9d2 (diff)
downloadtimeline-98dabdd9462384353389a6834b9e71a3e40330a2.tar.gz
timeline-98dabdd9462384353389a6834b9e71a3e40330a2.tar.bz2
timeline-98dabdd9462384353389a6834b9e71a3e40330a2.zip
Add visibility query filter in get timelines api.
Diffstat (limited to 'Timeline/Services/UserTokenManager.cs')
-rw-r--r--Timeline/Services/UserTokenManager.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/Timeline/Services/UserTokenManager.cs b/Timeline/Services/UserTokenManager.cs
index 3e9ef3d4..4e54c4cd 100644
--- a/Timeline/Services/UserTokenManager.cs
+++ b/Timeline/Services/UserTokenManager.cs
@@ -1,7 +1,6 @@
using Microsoft.Extensions.Logging;
using System;
using System.Threading.Tasks;
-using Timeline.Models;
namespace Timeline.Services
{
@@ -21,7 +20,7 @@ namespace Timeline.Services
/// <param name="expireAt">The expire time of the token.</param>
/// <returns>The created token and the user info.</returns>
/// <exception cref="ArgumentNullException">Thrown when <paramref name="username"/> or <paramref name="password"/> is null.</exception>
- /// <exception cref="UsernameBadFormatException">Thrown when <paramref name="username"/> is of bad format.</exception>
+ /// <exception cref="ArgumentException">Thrown when <paramref name="username"/> is of bad format.</exception>
/// <exception cref="UserNotExistException">Thrown when the user with <paramref name="username"/> does not exist.</exception>
/// <exception cref="BadPasswordException">Thrown when <paramref name="password"/> is wrong.</exception>
public Task<UserTokenCreateResult> CreateToken(string username, string password, DateTime? expireAt = null);