Skip to content

Commit

Permalink
Relocation success message.
Browse files Browse the repository at this point in the history
  • Loading branch information
kvb2univpitt committed Aug 19, 2015
1 parent 84b5541 commit 52b7748
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,16 +93,15 @@ public String registerWebUser(
if (userAccountService.findByUsername(username) == null) {
try {
userService.registerNewUser(userRegistration, workspace, request.getRequestURL().toString());
String msg = "Thank you for registering."
+ "Check your email to verify and activate your account.";
redirectAttributes.addFlashAttribute("successMsg", msg);
} catch (Exception exception) {
LOGGER.warn(
String.format("Unable to register new user account for %s.", username),
exception);
redirectAttributes.addFlashAttribute("errorMsg", String.format("Unable to create account for '%s'.", username));
}

String msg = "Thank you for registering."
+ "Check your email to verify and activate your account.";
redirectAttributes.addFlashAttribute("successMsg", msg);
} else {
redirectAttributes.addFlashAttribute("errorMsg", String.format("Username '%s' is already taken.", username));
}
Expand Down

0 comments on commit 52b7748

Please sign in to comment.