Skip to content

Commit

Permalink
Merge pull request #45 from credebl/email-verify-and-click-url-fix
Browse files Browse the repository at this point in the history
fix:email verification URL click issue
  • Loading branch information
nishad-ayanworks authored Aug 18, 2023
2 parents 0728dce + 78c8f64 commit e1e3aed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/user/templates/user-url-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export class URLUserEmailTemplate {
} else {
apiUrl = url.parse(`${endpoint}/verify-email-success?verificationCode=${verificationCode}&email=${encodeURIComponent(email)}`);
}

const validUrl = apiUrl.href.replace('/:', ':');
try {
return `<!DOCTYPE html>
Expand Down Expand Up @@ -45,10 +44,10 @@ export class URLUserEmailTemplate {
<ul style="color:#005EFF; padding-left:10px; font-family: Montserrat;font-style: normal;
font-weight: normal;font-size: 14px;line-height: 21px;">
<li>Username/Email: ${email}</li>
<li>Verification Link: <a href="${validUrl}">${validUrl}</a></li>
<li>Verification Link: <a clicktracking=off href="${validUrl}">${validUrl}</a></li>
</ul>
<div style="text-align: center; padding-bottom: 20px;">
<a href="${validUrl}"
<a clicktracking=off href="${validUrl}"
style="padding: 10px 20px 10px 20px;color: #fff;background: #1F4EAD;border-radius: 5px;text-decoration: none;">
VERIFY
</a>
Expand Down

0 comments on commit e1e3aed

Please sign in to comment.