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 659c633 commit 4772d99
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
9 changes: 9 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 @@ -93,7 +93,16 @@ 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 4772d99

Please sign in to comment.