n_("email does not match the allowed domain of %{email_domains}","email does not match the allowed domains: %{email_domains}",group_allowed_email_domains.size)%
it_behaves_like'restricted email error','User is not allowed. Try again with a different email address, or contact your GitLab admin.',:created
end
end
end
describe'POST /groups/:id/invitations'do
describe'POST /groups/:id/invitations'do
it_behaves_like'admin signup restrictions email error - denylist',"The member's email address is not allowed for this group. Go to the 'Admin area > Sign-up restrictions', and check the 'Domain denylist'.",:created
context'when the group is restricted by admin signup restrictions'do
context'when the group is restricted by admin signup restrictions'do
it_behaves_like'admin signup restrictions email error - allowlist',"The member's email address is not allowed for this group. Go to the 'Admin area > Sign-up restrictions', and check 'Allowed domains for sign-ups'.",:created
it_behaves_like'admin signup restrictions email error - email restrictions',"The member's email address is not allowed for this group. Go to the 'Admin area > Sign-up restrictions', and check 'Email restrictions for sign-ups'.",:created
end
end
context'when the group is restricted by group signup restriction - allowed domains for signup'do
context'when the group is restricted by group signup restriction - allowed domains for signup'do
...
@@ -63,8 +60,7 @@ RSpec.describe API::Invitations, 'EE Invitations' do
...
@@ -63,8 +60,7 @@ RSpec.describe API::Invitations, 'EE Invitations' do
# this response code should be changed to 4xx: https://gitlab.com/gitlab-org/gitlab/-/issues/321706
it_behaves_like'restricted email error',"The member's email address is not allowed for this group. Go to the group’s 'Settings > General' page, and check 'Restrict membership by email domain'.",:success
it_behaves_like'restricted email error',"Invite email email does not match the allowed domain of example.com",:success
end
end
end
end
...
@@ -74,7 +70,11 @@ RSpec.describe API::Invitations, 'EE Invitations' do
...
@@ -74,7 +70,11 @@ RSpec.describe API::Invitations, 'EE Invitations' do
let(:url){"/projects/#{project.id}/invitations"}
let(:url){"/projects/#{project.id}/invitations"}
context'when the project is restricted by admin signup restrictions'do
context'when the project is restricted by admin signup restrictions'do
it_behaves_like'admin signup restrictions email error - denylist',"The member's email address is not allowed for this project. Go to the 'Admin area > Sign-up restrictions', and check the 'Domain denylist'.",:created
context'when the group is restricted by admin signup restrictions'do
it_behaves_like'admin signup restrictions email error - allowlist',"The member's email address is not allowed for this project. Go to the 'Admin area > Sign-up restrictions', and check 'Allowed domains for sign-ups'.",:created
it_behaves_like'admin signup restrictions email error - email restrictions',"The member's email address is not allowed for this project. Go to the 'Admin area > Sign-up restrictions', and check 'Email restrictions for sign-ups'.",:created
expect(member.errors[:user]).toinclude("is not allowed for this #{source_type}. Go to the group’s 'Settings > General' page, and check 'Restrict membership by email domain'.")
end
end
it'shows proper error message for single domain limitation'do
it'shows proper error message for single domain limitation'do
...
@@ -89,7 +98,7 @@ RSpec.shared_examples 'member group domain validations' do
...
@@ -89,7 +98,7 @@ RSpec.shared_examples 'member group domain validations' do
msgid "Check the elasticsearch.log file to debug why the migration was halted and make any changes before retrying the migration. When you fix the cause of the failure, click \"Retry migration\", and the migration will be scheduled to be retried in the background."
msgid "Check the elasticsearch.log file to debug why the migration was halted and make any changes before retrying the migration. When you fix the cause of the failure, click \"Retry migration\", and the migration will be scheduled to be retried in the background."
msgstr ""
msgstr ""
msgid "Check with your administrator."
msgstr ""
msgid "Check your Docker images for known vulnerabilities."
msgid "Check your Docker images for known vulnerabilities."
msgstr ""
msgstr ""
...
@@ -15823,9 +15826,21 @@ msgstr ""
...
@@ -15823,9 +15826,21 @@ msgstr ""
msgid "Go to snippets"
msgid "Go to snippets"
msgstr ""
msgstr ""
msgid "Go to the 'Admin area > Sign-up restrictions', and check 'Allowed domains for sign-ups'."
msgstr ""
msgid "Go to the 'Admin area > Sign-up restrictions', and check 'Email restrictions for sign-ups'."
msgstr ""
msgid "Go to the 'Admin area > Sign-up restrictions', and check the 'Domain denylist'."
msgstr ""
msgid "Go to the activity feed"
msgid "Go to the activity feed"
msgstr ""
msgstr ""
msgid "Go to the group’s 'Settings > General' page, and check 'Restrict membership by email domain'."
msgstr ""
msgid "Go to the milestone list"
msgid "Go to the milestone list"
msgstr ""
msgstr ""
...
@@ -40034,9 +40049,6 @@ msgstr ""
...
@@ -40034,9 +40049,6 @@ msgstr ""
msgid "does not have a supported extension. Only %{extension_list} are supported"
msgid "does not have a supported extension. Only %{extension_list} are supported"
msgstr ""
msgstr ""
msgid "domain is not authorized for sign-up."
msgstr ""
msgid "download it"
msgid "download it"
msgstr ""
msgstr ""
...
@@ -40054,11 +40066,6 @@ msgstr ""
...
@@ -40054,11 +40066,6 @@ msgstr ""
msgid "email '%{email}' is not a verified email."
msgid "email '%{email}' is not a verified email."
msgstr ""
msgstr ""
msgid "email does not match the allowed domain of %{email_domains}"
msgid_plural "email does not match the allowed domains: %{email_domains}"
msgstr[0] ""
msgstr[1] ""
msgid "enabled"
msgid "enabled"
msgstr ""
msgstr ""
...
@@ -40272,16 +40279,19 @@ msgstr ""
...
@@ -40272,16 +40279,19 @@ msgstr ""
msgid "is not a valid X509 certificate."
msgid "is not a valid X509 certificate."
msgstr ""
msgstr ""
msgid "is not allowed since the group is not top-level group."
msgid "is not allowed for sign-up."
msgstr ""
msgstr ""
msgid "is not allowed. Try again with a different email address, or contact your GitLab admin."
msgid "is not allowed for this group."
msgstr ""
msgstr ""
msgid "is not allowed. We do not currently support project-level iterations"
msgid "is not allowed for this project."
msgstr ""
msgstr ""
msgid "is not from an allowed domain."
msgid "is not allowed since the group is not top-level group."
msgstr ""
msgid "is not allowed. We do not currently support project-level iterations"
msgstr ""
msgstr ""
msgid "is not in the group enforcing Group Managed Account"
msgid "is not in the group enforcing Group Managed Account"
"root: User email 'admin@example.com' does not match the allowed domain of example2.com and user18: User email 'user18@example.org' does not match the allowed domain of example2.com",
"root: The member's email address is not allowed for this project. Go to the Admin area > Sign-up restrictions, and check Allowed domains for sign-ups. and user18: The member's email address is not allowed for this project. Go to the Admin area > Sign-up restrictions, and check the Domain denylist. and john_doe31: The member's email address is not allowed for this project. Go to the Admin area > Sign-up restrictions, and check Email restrictions for sign-ups.",