mirror of
https://github.com/bitwarden/server
synced 2026-01-03 09:03:44 +00:00
Added conditional subject and button text to invite email. (#6304)
* Added conditional subject and button text to invite email. * Added feature flag.
This commit is contained in:
@@ -22,7 +22,8 @@ public class SendOrganizationInvitesCommand(
|
||||
IPolicyRepository policyRepository,
|
||||
IOrgUserInviteTokenableFactory orgUserInviteTokenableFactory,
|
||||
IDataProtectorTokenFactory<OrgUserInviteTokenable> dataProtectorTokenFactory,
|
||||
IMailService mailService) : ISendOrganizationInvitesCommand
|
||||
IMailService mailService,
|
||||
IFeatureService featureService) : ISendOrganizationInvitesCommand
|
||||
{
|
||||
public async Task SendInvitesAsync(SendInvitesRequest request)
|
||||
{
|
||||
@@ -71,12 +72,15 @@ public class SendOrganizationInvitesCommand(
|
||||
|
||||
var orgUsersWithExpTokens = orgUsers.Select(MakeOrgUserExpiringTokenPair);
|
||||
|
||||
var isSubjectFeatureEnabled = featureService.IsEnabled(FeatureFlagKeys.InviteEmailImprovements);
|
||||
|
||||
return new OrganizationInvitesInfo(
|
||||
organization,
|
||||
orgSsoEnabled,
|
||||
orgSsoLoginRequiredPolicyEnabled,
|
||||
orgUsersWithExpTokens,
|
||||
orgUserHasExistingUserDict,
|
||||
isSubjectFeatureEnabled,
|
||||
initOrganization
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user