mirror of
https://github.com/bitwarden/server.git
synced 2025-07-06 18:42:49 -05:00
[PM-15637] Add Email Notification Templates and Logic for Device Approval Requests (#5270)
* Add device approval notification email templates * Add DeviceApprovalRequestedViewModel for device approval notifications * Add method to send device approval requested notification email * Send email notification to Organization Admins when adding a new admin approval auth request * Add tests for device approval notification email sending in AuthRequestServiceTests * fix(email-templates): Remove unnecessary triple braces from user name variable in device approval notification emails * Add feature flag for admin notifications on device approval requests * Add logging for skipped admin notifications on device approval requests
This commit is contained in:
@ -0,0 +1,14 @@
|
||||
using Bit.Core.Models.Mail;
|
||||
|
||||
namespace Bit.Core.AdminConsole.Models.Mail;
|
||||
|
||||
public class DeviceApprovalRequestedViewModel : BaseMailModel
|
||||
{
|
||||
public Guid OrganizationId { get; set; }
|
||||
public string UserNameRequestingAccess { get; set; }
|
||||
|
||||
public string Url => string.Format("{0}/organizations/{1}/settings/device-approvals",
|
||||
WebVaultUrl,
|
||||
OrganizationId);
|
||||
}
|
||||
|
Reference in New Issue
Block a user