Skip to content

Commit d989ea1

Browse files
committed
cleanup URL construction to use encoded value
1 parent 78903e4 commit d989ea1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/Core/Auth/Models/Mail/RegisterVerifyEmail.cs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// FIXME: Update this file to be null safe and then delete the line below
22
#nullable disable
33

4-
using Bit.Core.Auth.Attributes;
5-
using Bit.Core.Auth.Models.Api.Request.Accounts;
64
using Bit.Core.Models.Mail;
75

86
namespace Bit.Core.Auth.Models.Mail;
@@ -21,10 +19,9 @@ public class RegisterVerifyEmail : BaseMailModel
2119
WebVaultUrl,
2220
Token,
2321
Email,
24-
!string.IsNullOrEmpty(FromMarketing) && FromMarketing == MarketingInitiativeConstants.Premium ? $"&fromMarketing={MarketingInitiativeConstants.Premium}" : string.Empty);
22+
!string.IsNullOrEmpty(FromMarketing) ? $"&fromMarketing={FromMarketing}" : string.Empty);
2523

2624
public string Token { get; set; }
2725
public string Email { get; set; }
28-
[MarketingInitiativeValidation]
2926
public string FromMarketing { get; set; }
3027
}

0 commit comments

Comments
 (0)