regression error with wolist after update, added regression test (and testability change to datatable refresh button) before fixing
This commit is contained in:
@@ -239,13 +239,13 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
//create a new datetime offset of now in utc time
|
||||
var iat = new DateTimeOffset(DateTime.Now.ToUniversalTime(), TimeSpan.Zero);//timespan zero means zero time off utc / specifying this is a UTC datetime
|
||||
|
||||
|
||||
//###################################
|
||||
//Lifetime of jwt token
|
||||
//after this point the user will no longer be able to make requests without logging in again
|
||||
//and the client will automatically send them to the login screen
|
||||
//so this is auto logout after this time period
|
||||
|
||||
|
||||
//security wise the length of time is not an issue how long this is because our system allows to revoke tokens as they are checked on every access
|
||||
//the adivce online is to make it short and use refresh tokens but that's not an issue with our system since we both issue and validate
|
||||
//the tokens ourselves
|
||||
@@ -257,7 +257,7 @@ namespace AyaNova.Api.Controllers
|
||||
//so this really only controls how long we allow them to work with an expired ayanova license which would be a rare occurence I suspect
|
||||
//so really to prevent fuckery for people 5 days seems fine meaning they won't need to sign in again all business week if they want to continue working
|
||||
var exp = new DateTimeOffset(DateTime.Now.AddDays(JWT_LIFETIME_DAYS).ToUniversalTime(), TimeSpan.Zero);
|
||||
|
||||
|
||||
|
||||
|
||||
//=============== download token ===================
|
||||
@@ -550,8 +550,11 @@ namespace AyaNova.Api.Controllers
|
||||
|
||||
QRCodeGenerator qrGenerator = new QRCodeGenerator();
|
||||
QRCodeData qrCodeData = qrGenerator.CreateQrCode(payload, QRCodeGenerator.ECCLevel.Q);
|
||||
Base64QRCode qrCode = new Base64QRCode(qrCodeData);
|
||||
string qrCodeImageAsBase64 = qrCode.GetGraphic(3);
|
||||
// Base64QRCode qrCode = new Base64QRCode(qrCodeData);
|
||||
// string qrCodeImageAsBase64 = qrCode.GetGraphic(3);
|
||||
|
||||
PngByteQRCode qpng = new PngByteQRCode(qrCodeData);
|
||||
string qrCodeImageAsBase64 = Convert.ToBase64String(qpng.GetGraphic(3));
|
||||
|
||||
return Ok(ApiOkResponse.Response(new
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user