Skip to content

Commit

Permalink
Fix status message after signup
Browse files Browse the repository at this point in the history
  • Loading branch information
lukfor committed Dec 18, 2023
1 parent bac0e2f commit 694bda4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 8 additions & 0 deletions src/main/html/webapp/components/core/user/signup/signup.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,15 @@ export default Control.extend({
success: function(data) {
if (data.success == true) {
// shows success
var message = "";
if (!anonymous){
message = "Well done!</b> An email including the activation code has been sent to your address."
} else {
message = "<b>Well done!</b> Your account is now active. <a href=\"/\">Login now</a>."
}

$('#signon-form').hide();
$('#success-message').html(message);
$('#success-message').show();
} else {
// shows error msg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@
<br>

<div class="alert alert-success" id="success-message" style="display: none;">
{{#is(emailRequired, true)}}
<b>Well done!</b> An email including the activation code has been sent to your address.
{{else}}
<b>Well done!</b> Your account is now active. <a href="./">Login now</a>.
{{/is}}
<br>
</div>

<form id="signon-form" class="form-horizontal" autocomplete="off">
Expand Down

0 comments on commit 694bda4

Please sign in to comment.