Starts in:
0 DAY
9 HRS
19 MIN
49 SEC
Starts in:
0 D
9 H
19 M
49 S
Open Closed

change default ABP message #2597


User avatar
0
shobhit created
  • ABP Framework version: v4.2.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

Hi Team, I have to change below passwod validation message. how i can change?


1 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    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:

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06