Implemented api authentication. Removed old secret system
This commit is contained in:
@@ -11,5 +11,5 @@ public class CreateApiKeyRequest
|
||||
public string PermissionsJson { get; set; } = "[]";
|
||||
|
||||
[Required(ErrorMessage = "You need to specify an expire date")]
|
||||
public DateTime ExpiresAt { get; set; } = DateTime.Now.AddDays(30);
|
||||
public DateTime ExpiresAt { get; set; } = DateTime.UtcNow.AddDays(30);
|
||||
}
|
||||
Reference in New Issue
Block a user