mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 00:27:31 +00:00
feat: restrict smtp sender address (#3637)
* fix: check if sender address is custom domain * fix: check if sender address is custom domain * fix: check if sender address is custom domain Co-authored-by: Livio Amstutz <livio.a@gmail.com>
This commit is contained in:
@@ -8,9 +8,10 @@ import (
|
||||
|
||||
func DomainPolicyToPb(policy *query.DomainPolicy) *policy_pb.DomainPolicy {
|
||||
return &policy_pb.DomainPolicy{
|
||||
UserLoginMustBeDomain: policy.UserLoginMustBeDomain,
|
||||
ValidateOrgDomains: policy.ValidateOrgDomains,
|
||||
IsDefault: policy.IsDefault,
|
||||
UserLoginMustBeDomain: policy.UserLoginMustBeDomain,
|
||||
ValidateOrgDomains: policy.ValidateOrgDomains,
|
||||
SmtpSenderAddressMatchesInstanceDomain: policy.SMTPSenderAddressMatchesInstanceDomain,
|
||||
IsDefault: policy.IsDefault,
|
||||
Details: object.ToViewDetailsPb(
|
||||
policy.Sequence,
|
||||
policy.CreationDate,
|
||||
|
Reference in New Issue
Block a user