From 916e9e52cfb6e3e1b3afb51209064ddf3851d81a Mon Sep 17 00:00:00 2001 From: Hudell Date: Fri, 13 Apr 2018 15:10:05 -0300 Subject: [PATCH] Show error message when email verification fails --- packages/rocketchat-ui/client/lib/accounts.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/rocketchat-ui/client/lib/accounts.js b/packages/rocketchat-ui/client/lib/accounts.js index 5045fbff9dcc..681a42ec81e7 100644 --- a/packages/rocketchat-ui/client/lib/accounts.js +++ b/packages/rocketchat-ui/client/lib/accounts.js @@ -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(); });