1
This commit is contained in:
@@ -53,6 +53,12 @@
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
public string SecretKey { get; set; } = Guid.NewGuid().ToString();
|
||||
|
||||
public int TokenLifetimeMinutes { get; set; } = 60 * 24 * 7;
|
||||
}
|
||||
|
||||
|
||||
|
||||
11
Yes.Domain/Core/Exceptions/InvalidTokenException.cs
Normal file
11
Yes.Domain/Core/Exceptions/InvalidTokenException.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
namespace Yes.Domain.Core.Exceptions
|
||||
{
|
||||
public class InvalidTokenException : BaseException
|
||||
{
|
||||
|
||||
public InvalidTokenException() : base($"登录失效,请重新登录!")
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user