Hi,
Can you upgrade your suite version to the latest and try again? thanks. it might be fixed.
Hi,
Browsers already have this feature, I don't know why need to implement it again.
Anyway, just a suggestion: you can use the mac address as user identification, if the user login with remember me, you can store it in the database, the next time the user logs in, if the mac address matches, then automatically filled username, and password.
Command aggregate failed: PlanExecutor error during aggregation :: caused by :: Sort exceeded memory limit of 104857600 bytes, but did not opt in to external sorting. Aborting operation. Pass allowDiskUse:true to opt in.
You can try this:
public class ProductRepositry: ...
{
public async Task<...> GetListAsync(...)
{
var dbContext = await GetDbContextAsync(cancellationToken);
var collection = dbContext.Collection<YourEntity>();
var queryable = ApplyDataFilters<IMongoQueryable<YourEntity>, YourEntity>(
dbContext.SessionHandle != null
? collection.AsQueryable(dbContext.SessionHandle, new AggregateOptions(){AllowDiskUse = true})
: collection.AsQueryable(new AggregateOptions(){AllowDiskUse = true})
);
queryable....ToListAsync()
}
}
Hi,
I will check it.
Hi,
Could you provide the steps to reproduce? thanks
Hi,
Because the clock skew, default value is 5 mins. see: https://stackoverflow.com/questions/47153080/clock-skew-and-tokens
Hi,
That's all, when you create a tenant and set its connection string, you will see the database has been created
We will release 5.3.1 version today.
Hi,
This is design by Microsoft.
You can try this if you need:
public class MyValidateAntiforgeryTokenFilter : IAsyncAuthorizationFilter, ITransientDependency , IAntiforgeryPolicy
{
private readonly IAntiforgery _antiforgery;
public MyValidateAntiforgeryTokenFilter(IAntiforgery antiforgery)
{
_antiforgery = antiforgery;
}
public async Task OnAuthorizationAsync(AuthorizationFilterContext context)
{
if (HttpMethods.IsPost(context.HttpContext.Request.Method) && context.ActionDescriptor.DisplayName == "/Account/Login")
{
try
{
await _antiforgery.ValidateRequestAsync(context.HttpContext);
}
catch (AntiforgeryValidationException)
{
// redirect to index page
context.Result = new RedirectResult("/");
}
}
}
}
Configure<MvcOptions>(options =>
{
options.Filters.AddService<MyValidateAntiforgeryTokenFilter>(2000);
});
HI,
I will check it.