Skip to content

Commit

Permalink
Show error message when email verification fails (#10446)
Browse files Browse the repository at this point in the history
[FIX] Error messages weren't been displayed when email verification fails
  • Loading branch information
Hudell authored and rodrigok committed Apr 19, 2018
1 parent d23c643 commit fb3a6d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/rocketchat-ui/client/lib/accounts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Accounts.onEmailVerificationLink(function(token, done) {
if (error == null) {
toastr.success(t('Email_verified'));
Meteor.call('afterVerifyEmail');
} else {
toastr.error(error.message);
}
return done();
});
Expand Down

0 comments on commit fb3a6d9

Please sign in to comment.