Skip to content
This repository has been archived by the owner on Feb 8, 2025. It is now read-only.

Commit

Permalink
this is kinda stinky, but we can fix it later. im tired.
Browse files Browse the repository at this point in the history
  • Loading branch information
hlafaille committed Dec 16, 2024
1 parent d825e01 commit 7ed0920
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ public String getHome(UserEntity user, Model model) {
// home screen
if (user.getFirstName() != null) {
model.addAttribute("showIntroduction", false);
} else {
model.addAttribute("showIntroduction", true);
}
return "pages/home";
}
Expand All @@ -40,7 +42,7 @@ public String getConfirmAccount() {
public String handleEditIntroductions(UserEntity user, @RequestParam String firstName,
@RequestParam String lastName,
@RequestParam LocalDate birthday) {

userService.setIntroductorySettings(user, firstName, lastName, birthday);
return "redirect:/home";
}
Expand Down

0 comments on commit 7ed0920

Please sign in to comment.