hi
What is your license type?
Team or Business?
Thanks.
hi
We will fix this in 9.0
https://github.com/abpframework/abp/pull/21263
You can override the Volo.Abp.Identity:InvalidUserName
text and add the patch code below to your API website.
"Volo.Abp.Identity:InvalidUserName": "Username '{0}' is invalid, can only contain letters or digits."
public class Program
{
public async static Task<int> Main(string[] args)
{
var identityStrings = (typeof(AbpIdentityResultExtensions)
.GetField("IdentityStrings", BindingFlags.NonPublic | BindingFlags.Static | BindingFlags.Instance)
?.GetValue(null) ?? new Dictionary<string, string>()).As<Dictionary<string, string>>();
if (identityStrings.ContainsKey("InvalidUserName"))
{
identityStrings["InvalidUserName"] = "Username '{0}' is invalid.";
}
https://abp.io/community/articles/how-to-override-localization-strings-of-depending-modules-ba1oy03l
The Login
page will lose the Prevent Cross-Site Request Forgery (XSRF/CSRF)
feature.
https://learn.microsoft.com/en-us/aspnet/core/security/anti-request-forgery?view=aspnetcore-8.0
hi
New way to disable the AntiforgeryToken
context.Services.AddRazorPages(options =>
{
options.Conventions.AddPageApplicationModelConvention("/Account/Login", model =>
{
model.Filters.Add(new IgnoreAntiforgeryTokenAttribute());
});
});
ok, Let me check it again.
hi
with token invalid error.
Can you share the full error?
ABP will use EF Core to connect your database
Maybe you can check this: https://learn.microsoft.com/en-us/azure/azure-sql/database/azure-sql-dotnet-entity-framework-core-quickstart?view=azuresql&tabs=dotnet-cli%2Cservice-connector%2Cportal