1
0
mirror of https://github.com/bitwarden/server.git synced 2025-06-30 23:52:50 -05:00

Add Expiration Date To Organization Invite Emails (#1466)

* Added an expiration date to the organization user invite email

* Added a period

* moved property assignment around

* fixed date offset
This commit is contained in:
Addison Beck
2021-07-16 14:17:24 -04:00
committed by GitHub
parent 5ec37b96b4
commit 745068686b
9 changed files with 42 additions and 17 deletions

View File

@ -0,0 +1,16 @@
using System;
namespace Bit.Core.Models.Business
{
public class ExpiringToken
{
public readonly string Token;
public readonly DateTime ExpirationDate;
public ExpiringToken(string token, DateTime expirationDate)
{
Token = token;
ExpirationDate = expirationDate;
}
}
}

View File

@ -1,4 +1,6 @@
namespace Bit.Core.Models.Mail
using System;
namespace Bit.Core.Models.Mail
{
public class OrganizationUserInvitedViewModel : BaseMailModel
{
@ -8,6 +10,7 @@
public string Email { get; set; }
public string OrganizationNameUrlEncoded { get; set; }
public string Token { get; set; }
public string ExpirationDate { get; set; }
public string Url => string.Format("{0}/accept-organization?organizationId={1}&" +
"organizationUserId={2}&email={3}&organizationName={4}&token={5}",
WebVaultUrl,