I reproduced the issue. It doesn't seem to be related with ABP framework or our product but here is the solution:
Input.DateOfBirth = DateTime.Today
. public virtual async Task<IActionResult> OnGetAsync()
{
Input = new PostInput();
await CheckSelfRegistrationAsync();
await TrySetEmailAsync();
await SetUseCaptchaAsync();
Input.DateOfBirth = DateTime.Today;
return Page();
}
public DateTime DateOfBirth { get; set; }
<div class="mb-3">
<label class="form-label" for="Input_DateOfBirth">DateOfBirth</label>
<input type="date" id="Input_DateOfBirth" name="Input.DateOfBirth" value="@Model.Input.DateOfBirth.ToString("yyyy-MM-dd")" class="form-control ">
</div>
You can download the source code of Account module (via Suite or Cli) and use project references. Then you can change it as you wish.
Second option: You can just override the login page. See https://docs.abp.io/en/abp/latest/UI/AspNetCore/Customization-User-Interface
Hi @Spospisil,
I couldn't faced this error on a newly created project. (abp new Acme.BookStore -u mvc --tiered -v 5.1.3
)
After which change you begin to see this error?
abp install-libs
command should had been run by Suite and create libs folder. If you see the libs folder is missing, you can run the abp install-libs
manually.
Hi @mert.kir,
I checked the previous issue. It seems to be resolved in the same day. It shouldn't occur again after 5.0.0 version.
Hi @shobhit,
This message is a sum of error descriptions in an unsuccessful IdentityResult sent from Microsoft.AspNetCore.Identity.UserManager.CreateAsync()
method.
See https://github.com/abpframework/abp/blob/dev/modules/identity/src/Volo.Abp.Identity.Domain/Volo/Abp/Identity/AbpIdentityResultException.cs#L22
So, you can't change this message by simply overriding the localizations.
One solution would be: Overriding RegisterModel in Account module, and changing the message in Catch block. See the SS below:
Hi @MahmoudA,
I suggest you to check ABP SignalR Integration. You may also need to customize Account module as well.
Hi @lethanhbinh1601,
I created a new MVC v5.1.3 project & added File Management module via Suite. But i couldn't reproduce the error.
Can you check what is changed in the libs
folder after installing the module?
Hi @maazq,
The class is moved to Volo.Abp.Account.Public.Web
namespace.
Edit: This is not true actually. The blog post uses free Account module, and AbpAccountOptions is under different namespaces in Free & Pro Account modules. You need to use the one i mentioned above (Volo.Abp.Account.Public.Web
).
@jhsanc
See https://github.com/abpframework/abp/issues/11505#issuecomment-1039854226