jwt dltoken changes
This commit is contained in:
@@ -209,7 +209,7 @@ namespace AyaNova.Api.Controllers
|
||||
List<fileData> FileData = new List<fileData>();
|
||||
|
||||
if (
|
||||
!uploadFormData.FormFieldData.ContainsKey("FileData") ||
|
||||
!uploadFormData.FormFieldData.ContainsKey("FileData") ||
|
||||
!uploadFormData.FormFieldData.ContainsKey("AttachToObjectType") ||
|
||||
!uploadFormData.FormFieldData.ContainsKey("AttachToObjectId"))
|
||||
{
|
||||
@@ -439,6 +439,8 @@ namespace AyaNova.Api.Controllers
|
||||
}
|
||||
|
||||
|
||||
//this is necessary because they might have an expired JWT but this would just keep on working without a date check
|
||||
//the default is the same timespan as the jwt so it's all good
|
||||
var utcNow = new DateTimeOffset(DateTime.Now.ToUniversalTime(), TimeSpan.Zero);
|
||||
if (DownloadUser.DlKeyExpire < utcNow.DateTime)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user