mirror of
https://github.com/bitwarden/server.git
synced 2025-04-04 20:50:21 -05:00

* initial commit of `CipherOrganizationPermission_GetManyByUserId` * create queries to get all of the security tasks that are actionable by a user - A task is "actionable" when the user has manage permissions for that cipher * rename query * return the user's email from the query as well * Add email notification for at-risk passwords - Added email layouts for security tasks * add push notification for security tasks * update entity framework to match stored procedure plus testing * update date of migration and remove orderby * add push service to security task controller * rename `SyncSecurityTasksCreated` to `SyncNotification` * remove duplicate return * remove unused directive * remove unneeded new notification type * use `createNotificationCommand` to alert all platforms * return the cipher id that is associated with the security task and store the security task id on the notification entry * Add `TaskId` to the output model of `GetUserSecurityTasksByCipherIdsAsync` * move notification logic to command * use TaskId from `_getSecurityTasksNotificationDetailsQuery` * add service * only push last notification for each user * formatting * refactor `CreateNotificationCommand` parameter to `sendPush` * flip boolean in test * update interface to match usage * do not push any of the security related notifications to the user * add `PendingSecurityTasks` push type * add push notification for pending security tasks
62 lines
2.9 KiB
Handlebars
62 lines
2.9 KiB
Handlebars
{{#>FullUpdatedHtmlLayout}}
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%"
|
||
style="background-color: #175DDC;padding-top:25px;padding-bottom:15px;">
|
||
<tr>
|
||
<td align="center" valign="top" width="70%" class="templateColumnContainer">
|
||
<table border="0" cellpadding="0" cellspacing="0" width="100%"
|
||
style="padding-left:30px; padding-right: 5px; padding-top: 20px;">
|
||
<tr>
|
||
<td
|
||
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; box-sizing: border-box; font-size: 24px; color: #ffffff; line-height: 32px; font-weight: 500; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;">
|
||
{{OrgName}} has identified {{TaskCount}} critical login{{#if TaskCountPlural}}s{{/if}} that require{{#unless
|
||
TaskCountPlural}}s{{/unless}} a
|
||
password change
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td align="right" valign="bottom" class="templateColumnContainer" style="padding-right: 15px;">
|
||
<img width="140" height="140" align="right" valign="bottom"
|
||
style="width: 140px; height:140px; font-size: 0; vertical-align: bottom; text-align: right;" alt=''
|
||
src='https://assets.bitwarden.com/email/v1/business-warning.png' />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
{{>@partial-block}}
|
||
|
||
<table width="100%" style="display:table; background-color: #FBFBFB; vertical-align: middle; padding:30px" border="0"
|
||
cellpadding="0" cellspacing="0" valign="middle">
|
||
<tr>
|
||
<td width="70%" class="footer-text" style="padding-right: 20px;">
|
||
<table align="left" border="0" cellpadding="0" cellspacing="0">
|
||
<tr>
|
||
<td
|
||
style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: 400; font-size: 16px; line-height: 24px;">
|
||
<p
|
||
style="margin: 0; padding: 0; margin-bottom: 0; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; font-style: normal; font-weight: 600; font-size: 20px; line-height: 28px;">
|
||
We’re here for you!</p>
|
||
If you have any questions, search the Bitwarden <a
|
||
style="text-decoration: none; color: #175DDC; font-weight: 600;"
|
||
href="https://bitwarden.com/help/">Help</a> site or <a
|
||
style="text-decoration: none; color: #175DDC; font-weight: 600;"
|
||
href="https://bitwarden.com/contact/">contact us</a>.
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
<td width="30%">
|
||
<table align="right" valign="bottom" class="footer-image" border="0" cellpadding="0" cellspacing="0"
|
||
style="padding-left: 40px;">
|
||
<tr>
|
||
<td>
|
||
<img width="94" height="77" src="https://assets.bitwarden.com/email/v1/chat.png"
|
||
style="width: 94px; height: 77px;" alt="" />
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
{{/FullUpdatedHtmlLayout}}
|