@Override
    protected void runSecuredCommand(final Bootstrap<Config> bootstrap,
                                     final Namespace namespace,
                                     final Config config,
                                     final Injector injector) {

        final String username = namespace.getString(USERNAME_ARG_NAME);
        final String newPassword = namespace.getString(PASSWORD_ARG_NAME);

        LOGGER.debug("Resetting password for account {}", username);

        injector.injectMembers(this);

        accountDao.resetPassword(username, newPassword);

        String msg = LogUtil.message("Password reset complete for user {}", username);
        LOGGER.info(msg);
        logEvent(username, true, msg);
    }
Resets the password of an account in the internal identity provider
stroom-app/src/main/java/stroom/app/commands/ResetPasswordCommand.java