From 52b7748d60be9aa56ae80c46df629ef52a1099b0 Mon Sep 17 00:00:00 2001 From: Kevin Bui Date: Wed, 19 Aug 2015 09:09:56 -0400 Subject: [PATCH] Relocation success message. --- .../dbmi/ccd/web/ctrl/user/UserRegistrationController.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/java/edu/pitt/dbmi/ccd/web/ctrl/user/UserRegistrationController.java b/src/main/java/edu/pitt/dbmi/ccd/web/ctrl/user/UserRegistrationController.java index 3a1c4bd6..d2bc0c93 100644 --- a/src/main/java/edu/pitt/dbmi/ccd/web/ctrl/user/UserRegistrationController.java +++ b/src/main/java/edu/pitt/dbmi/ccd/web/ctrl/user/UserRegistrationController.java @@ -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)); }