Open Closed

ConfirmPassword label and error message change #6811


User avatar
0
oncalldev@cloudassert.com created
  • ABP Framework version: 8.0.1
  • UI Type: Angular
  • Database System: EF Core (SQL Server,)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue: In the above screenshot , when i click reset password error message appears line 'The ConfirmPassword field is required.' but i want to change it to 'The Confirm Password field is required.' and the label 'ConfirmPassword' to 'Confirm Password',How can it be changed , hence it is a property name iam unable to change , how can it be changes

7 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    Can this help you? https://docs.abp.io/en/abp/latest/UI/Angular/Form-Validation#how-to-add-new-error-messages

  • User Avatar
    0
    oncalldev@cloudassert.com created

    Hi,

    Can this help you? https://docs.abp.io/en/abp/latest/UI/Angular/Form-Validation#how-to-add-new-error-messages

    the validator should return "Confirm Password" with a space instead of "ConfirmPassword" as the error object.How could this be handled

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    I could not reproduce the problem.

    My steps:

    abp new Qa -u angular -v 8.0.1

    Could you share the full steps to reproduce? thanks.

  • User Avatar
    0
    oncalldev@cloudassert.com created

    In reset password link i get this type of error message form confirmpassword like "The ConfirmPassword is required field" the object name is 'ConfirmPassword' but it should be actually ' Confirm Password',How can i change the object name.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    In reset password link i get this type of error message form confirmpassword like "The ConfirmPassword is required field" the object name is 'ConfirmPassword' but it should be actually ' Confirm Password',How can i change the object name.

    Ok, I understand, but how do I reproduce the problem? Can you share a sample project to reproduce the problem with me, and I will check it out? My email is shiwei.liang@volosoft.com thanks.

    You can see in my screenshot it's work.

  • User Avatar
    0
    oncalldev@cloudassert.com created

    This page comes from auth server could you check it, iam not getting error message as you get, its like, , How can i change the object name of "ConfirmPassword" to "Confirm Password"

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Ok, Actually, I'm asking you how to reproduce the problem, but you didn't provide the steps.

    However, you can override the ResetPassword localization text

    Open localization file to add the localization key:

    "ConfirmPassword": "My confirm password"
    

    Configure the AbpLocalizationOptions in the AuthServer module class

    Configure<AbpLocalizationOptions>(options =>
    {
        options.Resources.Get<AccountResource>()
            .AddVirtualJson("/Localization/Qa");  // replace Qa with yours
    });
    

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