Skip to content

Commit

Permalink
Fix the ugly ass purple mail text
Browse files Browse the repository at this point in the history
  • Loading branch information
turecross321 committed Sep 22, 2024
1 parent 2e13bcc commit 9797af5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions SoundShapesServer/Endpoints/Api/ApiAuthenticationEndpoints.cs
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ public ApiOkResponse SetEmail(RequestContext context, GameDatabaseContext databa
string verifyUrl = $"{config.WebsiteUrl}/verifyEmail?code={verifyEmail.Code}";

string htmlBody = """
<html lang="en" style="font-size: 10pt; font-family: Tahoma, serif;">
<body>
<html lang="en" style="font-size: 10pt; font-family: Tahoma, serif; color: #000;">
<body style="color:#181515;>
<h1>Hello, {USER}</h1>
<p>Please click the button below to verify your email address and finish the registration of your account.</p>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 1rem; font-size: x-large; text-decoration: none; display: inline-block;">Verify</a>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: x-large; text-decoration: none; display: inline-block;">Verify</a>
<p>If you didn't request this, please ignore this email.</p>
<p>Greetings, the {INSTANCE} team.</p>
</body>
Expand Down Expand Up @@ -124,11 +124,11 @@ public ApiOkResponse SendPasswordResetMail(RequestContext context, GameDatabaseC
string passwordUrl = $"{config.WebsiteUrl}/resetPassword?code={code.Code}";

string htmlBody = """
<html lang="en" style="font-size: 10pt; font-family: Tahoma, serif;">
<body>
<html lang="en" style="font-size: 10pt; font-family: Tahoma, serif; color: #000;">
<body style="color:#181515;>
<h1>Hello, {USER}</h1>
<p>You may click the button below to reset your password.</p>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 1rem; font-size: x-large; text-decoration: none; display: inline-block;">Reset Password</a>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: x-large; text-decoration: none; display: inline-block;">Reset Password</a>
<p>If you didn't request this, please ignore this email.</p>
<p>Greetings, the {INSTANCE} team.</p>
</body>
Expand Down Expand Up @@ -218,10 +218,10 @@ public ApiOkResponse Register(RequestContext context, GameDatabaseContext databa

string htmlBody = """
<html lang="en" style="font-size: 10pt; font-family: Tahoma, serif;">
<body>
<body style="color:#181515;">
<h1>Hello, {USER}</h1>
<p>Please click the button below to verify your email address and finish the registration of your account.</p>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 1rem; font-size: x-large; text-decoration: none; display: inline-block;">Verify</a>
<a href="{CODE_URL}" style="color: white; background-color: #F07167; padding: 0.5rem 1rem; border-radius: 0.5rem; font-size: x-large; text-decoration: none; display: inline-block;">Verify</a>
<p>If you didn't request this, please ignore this email.</p>
<p>Greetings, the {INSTANCE} team.</p>
</body>
Expand Down

0 comments on commit 9797af5

Please sign in to comment.