[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
Этот коммит содержится в:
коммит произвёл
Harrison Healey
родитель
976030ea25
Коммит
227586e09a
@@ -2131,6 +2131,10 @@
|
||||
"id": "api.team.invite_members.send.error",
|
||||
"translation": "Failed to send invite email successfully err=%v"
|
||||
},
|
||||
{
|
||||
"id": "api.team.invite_members.invalid_email.app_error",
|
||||
"translation": "The following email addresses do not belong to an accepted domain: {{.Addresses}}. Please contact your System Administrator for details."
|
||||
},
|
||||
{
|
||||
"id": "api.team.invite_members.sending.info",
|
||||
"translation": "sending invitation to %v %v"
|
||||
|
||||
Ссылка в новой задаче
Block a user