JMIX - Allow users to change their passwords

JMIX version 1.2.3

With JMIX is there any way to allow users to change their passwords themselves without an Admin resetting their password for them manually?

Is there a screen that we need to extend to allow this functionality?

The framework provides the ChangePasswordDialog class, you can call it from any part of your application as follows:

    @Autowired
    private Screens screens;

    @Autowired
    private CurrentAuthentication currentAuthentication;

    @Subscribe("changePasswordBtn")
    public void onChangePasswordBtnClick(Button.ClickEvent event) {
        screens.create(ChangePasswordDialog.class)
                .withUsername(currentAuthentication.getUser().getUsername())
                .withCurrentPasswordRequired(true)
                .show();
    }
2 Likes