Skip to content

Commit

Permalink
fix(email ) :fix email recovre (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
mahdijafariii authored Sep 9, 2024
1 parent e407626 commit 1cd85f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions AnalysisData/AnalysisData/AnalysisData.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</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 = @"Assets/email-template.html";
string htmlTemplatePath = @"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 1cd85f7

Please sign in to comment.