@Override
  @GetMapping
  public String init(final Model model) {
    super.init(model);
    model.addAttribute("adminEmails", userService.getSuEmailAddresses());
    if (SecurityUtils.currentUserIsAuthenticated()) {
      User currentUser = userService.getUser(SecurityUtils.getCurrentUsername());
      if (currentUser != null) {
        model.addAttribute("userName", getFormattedName(currentUser));
        model.addAttribute("userEmail", currentUser.getEmail());
      }
    }
    model.addAttribute("isRecaptchaEnabled", appSettings.getRecaptchaIsEnabled());
    model.addAttribute("recaptchaPublicKey", appSettings.getRecaptchaPublicKey());
    return VIEW_FEEDBACK;
  }
@ Override @ GetMapping public String init ( final Model model ) { super . init ( model ) ; model . addAttribute ( "adminEmails" , userService . getSuEmailAddresses ( ) ) ; if ( SecurityUtils . currentUserIsAuthenticated ( ) ) { User currentUser = userService . getUser ( SecurityUtils . getCurrentUsername ( ) ) ; if ( currentUser != null ) { model . addAttribute ( "userName" , getFormattedName ( currentUser ) ) ; model . addAttribute ( "userEmail" , currentUser . getEmail ( ) ) ; } } model . addAttribute ( "isRecaptchaEnabled" , appSettings . getRecaptchaIsEnabled ( ) ) ; model . addAttribute ( "recaptchaPublicKey" , appSettings . getRecaptchaPublicKey ( ) ) ; return VIEW_FEEDBACK ; }
Serves feedback form.