Skip to content

Commit

Permalink
Fix bug (#118)
Browse files Browse the repository at this point in the history
* fix(email) recover

* fix(email) recover
  • Loading branch information
mahdijafariii authored Sep 9, 2024
1 parent b7f86fe commit 501ecb7
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion AnalysisData/AnalysisData/AnalysisData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
</ItemGroup>

<ItemGroup>
<Folder Include="Assets\" />
<Folder Include="Dtos\" />
<Folder Include="Models\" />
<Folder Include="Repositories\" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public EmailService(IConfiguration configuration)
public async Task SendPasswordResetEmail(string toEmail, string resetLink, string token)
{

string htmlTemplatePath = @"email-template.html";
string htmlTemplatePath = @"Assets/email-template.html";
string htmlContent = File.ReadAllText(htmlTemplatePath);
string linkWithToken = $"{resetLink}?token={token}&email={toEmail}";
htmlContent = htmlContent.Replace("https://myfronti.abriment.com?token={token}&email={email}", linkWithToken);
Expand Down

0 comments on commit 501ecb7

Please sign in to comment.