@ -573,6 +573,7 @@ team_name_been_taken = The team name is already taken.
team_no_units_error=Allow access to at least one repository section.
team_no_units_error=Allow access to at least one repository section.
email_been_used=The email address is already used.
email_been_used=The email address is already used.
email_invalid=The email address is invalid.
email_invalid=The email address is invalid.
email_domain_is_not_allowed=The domain of user email <b>%s</b> conflicts with EMAIL_DOMAIN_ALLOWLIST or EMAIL_DOMAIN_BLOCKLIST. Please ensure your operation is expected.
openid_been_used=The OpenID address "%s" is already used.
openid_been_used=The OpenID address "%s" is already used.
username_password_incorrect=Username or password is incorrect.
username_password_incorrect=Username or password is incorrect.
password_complexity=Password does not pass complexity requirements:
password_complexity=Password does not pass complexity requirements:
ctx.Resp.Header().Add("X-Gitea-Warning",fmt.Sprintf("the domain of user email %s conflicts with EMAIL_DOMAIN_ALLOWLIST or EMAIL_DOMAIN_BLOCKLIST",u.Email))
}
log.Trace("Account created by admin (%s): %s",ctx.Doer.Name,u.Name)
log.Trace("Account created by admin (%s): %s",ctx.Doer.Name,u.Name)
ctx.Resp.Header().Add("X-Gitea-Warning",fmt.Sprintf("the domain of user email %s conflicts with EMAIL_DOMAIN_ALLOWLIST or EMAIL_DOMAIN_BLOCKLIST",*form.Email))
assert.Equal(t,"the domain of user email allowedUser1@example1.org conflicts with EMAIL_DOMAIN_ALLOWLIST or EMAIL_DOMAIN_BLOCKLIST",resp.Header().Get("X-Gitea-Warning"))
assert.Equal(t,"the domain of user email user2@example1.com conflicts with EMAIL_DOMAIN_ALLOWLIST or EMAIL_DOMAIN_BLOCKLIST",resp.Header().Get("X-Gitea-Warning"))