diff options
author | crupest <crupest@outlook.com> | 2020-02-22 21:33:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-22 21:33:42 +0800 |
commit | 5e04f3db229546e5a6de95fd36f6c41e5304b2cf (patch) | |
tree | 1897dc26074fb5b8aba2e2493b4c393279f6d4b4 /Timeline/Services/UserTokenManager.cs | |
parent | 4d25b19237c0f089fb2dadec267a5c7da1dec2a0 (diff) | |
parent | 6ee456f8cfe7d1dce0f8bf908c318d6431bce3c0 (diff) | |
download | timeline-5e04f3db229546e5a6de95fd36f6c41e5304b2cf.tar.gz timeline-5e04f3db229546e5a6de95fd36f6c41e5304b2cf.tar.bz2 timeline-5e04f3db229546e5a6de95fd36f6c41e5304b2cf.zip |
Merge pull request #60 from crupest/dev
Add visibility query filter in get timelines api.
Diffstat (limited to 'Timeline/Services/UserTokenManager.cs')
-rw-r--r-- | Timeline/Services/UserTokenManager.cs | 3 |
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);
|