Password too simple error message change

Hi,

I would like to know where do I need to override the customized error message for the default alert (“Password too simple”).
image

Hello,

To change this message you should override ChangePasswordDialog. As this dialog is a legacy screen it should be registered in the web-screens.xml.

  1. Create ext-change-password-dialog.xml file. Define path to the message pack that will override notification message.
    <window xmlns="http://schemas.haulmont.com/cuba/window.xsd"
            extends="/com/haulmont/cuba/gui/app/security/user/changepassw/change-password-dialog.xml"
            messagesPack="com.company.myapp.web.screens.ext.changepassworddialog">
        <layout>
        </layout>
    </window>
    
  2. Create message pack in the defined package in the XML above: com.company.myapp.web.screens.ext.changepassworddialog
    Add the following content:
    simplePassword=My message about simple password
    
  3. Register this extension in the web-screens.xml:
    <screen id="sec$User.changePassword"
            template="com/company/myapp/web/screens/ext/changepassworddialog/ext-change-password-dialog.xml"/>
    

com.haulmont.cuba.gui.app.security.user.changepassw/simplePassword=New password must contain: