summaryrefslogtreecommitdiffstats
path: root/webapp
diff options
context:
space:
mode:
authorPieter Lexis <pieterlexis@users.noreply.github.com>2017-06-29 15:04:14 +0200
committerHarrison Healey <harrisonmhealey@gmail.com>2017-06-29 09:04:14 -0400
commit227586e09af8c1ad1466a72078e5644d8368797f (patch)
tree7255ab442a58e31a904f61457598c4b5a1f8c97a /webapp
parent976030ea250bb5b9ae5cf70bddf9b9c54ab07959 (diff)
downloadchat-227586e09af8c1ad1466a72078e5644d8368797f.tar.gz
chat-227586e09af8c1ad1466a72078e5644d8368797f.tar.bz2
chat-227586e09af8c1ad1466a72078e5644d8368797f.zip
[PLT-5639] Show a message when invited addresses are blocked (#6691)
* Show a message when invited addresses are blocked When using the "Send Email Invite" functionality. Emails were sent to domains that were not on the `RestrictCreationToDomains` list. This would lead to users getting a message that they can't create an account if they follow the link in the email. This commit will check the email addresses before the mails are sent and warn the user typing them in which ones are blocked. * Add unit test for domain restrictions on invite * Invite Member: Clear serverError on toggle
Diffstat (limited to 'webapp')
-rw-r--r--webapp/components/invite_member_modal.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/webapp/components/invite_member_modal.jsx b/webapp/components/invite_member_modal.jsx
index 1e500115d..07aa9a1a3 100644
--- a/webapp/components/invite_member_modal.jsx
+++ b/webapp/components/invite_member_modal.jsx
@@ -97,7 +97,8 @@ class InviteMemberModal extends React.Component {
handleToggle(value) {
this.setState({
- show: value
+ show: value,
+ serverError: null
});
}