Skip to content

Commit

Permalink
fix: Update notification messages for verifying account (#5517)
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchauhan2889 authored Nov 10, 2020
1 parent ec21e62 commit a079751
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/unverified-user-message.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
{{#if (eq this.session.currentRouteName 'events.view.index')}}
{{t 'To make your event live, please verify your account by clicking on the confirmation link that has been emailed to you.'}}
{{else}}
{{t 'Your account is unverified.'}} {{@extraMessage}} {{t 'Please verify by clicking on the confirmation link that has been emailed to you.'}}
{{t 'Your account functionality is limited.'}} {{@extraMessage}} {{t 'To get full access to all features you need to verify your email by clicking on the confirmation link that has been emailed to you.'}}
{{/if}}
</div>
<p>{{t 'Did not get the email?'}} <a href="#" onclick={{action 'sendConfirmationMail'}}>{{t 'Please click here to resend the confirmation mail.'}}</a></p>
Expand Down
4 changes: 2 additions & 2 deletions app/templates/verify.hbs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{{#if this.success}}
<div class="ui {{if this.isLoading 'loading'}} icon info message eight wide column center aligned">
<p>Your email has been verified successfully!{{#if (not this.session.isAuthenticated)}} Please login to continue. {{/if}}</p>
<p>Thank you, your email has been verified successfully! You now have full access to all features.{{#if (not this.session.isAuthenticated)}} Please login to continue. {{/if}}</p>
</div>
{{else}}
<div class="ui {{if this.isLoading 'loading'}} icon error message eight wide column center aligned">
<p>Error: {{this.error}}</p>
</div>
{{/if}}
{{/if}}
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ module('Integration | Component | unverified user message', function(hooks) {
});
this.set('isMailSent', false);
await render(hbs`{{unverified-user-message session=session authManager=authManager isMailSent=isMailSent}}`);
assert.dom(this.element).includesText('Your account is unverified. Please verify by clicking on the confirmation link that has been emailed to you.');
assert.dom(this.element).includesText('Your account functionality is limited. To get full access to all features you need to verify your email by clicking on the confirmation link that has been emailed to you.');
});
});

1 comment on commit a079751

@vercel
Copy link

@vercel vercel bot commented on a079751 Nov 10, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.