Search in sources :

Example 1 with PasswordSettingsCommand

use of org.libresonic.player.command.PasswordSettingsCommand in project libresonic by Libresonic.

the class PasswordSettingsController method displayForm.

@RequestMapping(method = RequestMethod.GET)
protected ModelAndView displayForm(HttpServletRequest request) throws Exception {
    PasswordSettingsCommand command = new PasswordSettingsCommand();
    User user = securityService.getCurrentUser(request);
    command.setUsername(user.getUsername());
    command.setLdapAuthenticated(user.isLdapAuthenticated());
    return new ModelAndView("passwordSettings", "command", command);
}
Also used : User(org.libresonic.player.domain.User) PasswordSettingsCommand(org.libresonic.player.command.PasswordSettingsCommand) ModelAndView(org.springframework.web.servlet.ModelAndView) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

PasswordSettingsCommand (org.libresonic.player.command.PasswordSettingsCommand)1 User (org.libresonic.player.domain.User)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1 ModelAndView (org.springframework.web.servlet.ModelAndView)1