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

Commit

Permalink
Merge pull request #67 from Kerosene-Labs/add-introductions
Browse files Browse the repository at this point in the history
this is kinda stinky, but we can fix it later. im tired.
  • Loading branch information
hlafaille authored Dec 16, 2024
2 parents cf6e65b + 7ed0920 commit 2ed4149
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 2ed4149

Please sign in to comment.