Implement verify email using server url

- fix confirm password typo
This commit is contained in:
Lakhan Samani
2021-07-21 03:34:03 +05:30
parent ae669eaf86
commit 885aaab6ee
8 changed files with 105 additions and 17 deletions

View File

@@ -26,7 +26,7 @@ func SendVerificationMail(toEmail, token string) error {
<a href="%s">Click here to verify</a>
</body>
</html>
`, constants.FRONTEND_URL+"/"+constants.VERIFY_EMAIL_URI+"?token="+token)
`, constants.SERVER_URL+"/verify_email"+"?token="+token)
bodyMessage := sender.WriteHTMLEmail(Receiver, Subject, message)
return sender.SendMail(Receiver, Subject, bodyMessage)