Hi,
I would like to know where do I need to override the customized error message for the default alert (“Password too simple”).
Hi,
I would like to know where do I need to override the customized error message for the default alert (“Password too simple”).
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
.
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>
com.company.myapp.web.screens.ext.changepassworddialog
simplePassword=My message about simple password
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: