From 694bda45192408eba71a80ece5c1c0086a9d2dc2 Mon Sep 17 00:00:00 2001 From: Lukas Forer Date: Mon, 18 Dec 2023 14:00:39 +0100 Subject: [PATCH] Fix status message after signup --- .../html/webapp/components/core/user/signup/signup.js | 8 ++++++++ .../html/webapp/components/core/user/signup/signup.stache | 6 ------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/main/html/webapp/components/core/user/signup/signup.js b/src/main/html/webapp/components/core/user/signup/signup.js index 1eed7210..59ca05c2 100644 --- a/src/main/html/webapp/components/core/user/signup/signup.js +++ b/src/main/html/webapp/components/core/user/signup/signup.js @@ -94,7 +94,15 @@ export default Control.extend({ success: function(data) { if (data.success == true) { // shows success + var message = ""; + if (!anonymous){ + message = "Well done! An email including the activation code has been sent to your address." + } else { + message = "Well done! Your account is now active. Login now." + } + $('#signon-form').hide(); + $('#success-message').html(message); $('#success-message').show(); } else { // shows error msg diff --git a/src/main/html/webapp/components/core/user/signup/signup.stache b/src/main/html/webapp/components/core/user/signup/signup.stache index bd80479b..d33b55a0 100644 --- a/src/main/html/webapp/components/core/user/signup/signup.stache +++ b/src/main/html/webapp/components/core/user/signup/signup.stache @@ -2,12 +2,6 @@