Skip to content

Commit

Permalink
refacmailer(
Browse files Browse the repository at this point in the history
  • Loading branch information
Grafiters committed Aug 26, 2023
1 parent d173f7f commit f5ef4b4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions interfaces/verif_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@ type VerifToken struct {
Email string `json:"email"`
GoogleID string `json:"google_id"`
Role string `json:"role"`
ActivationCode int `json:"email_verification_token"`
ResetPasswordToken int `json:"reset_password_token"`
ActivationCode string `json:"email_verification_token"`
ResetPasswordToken string `json:"reset_password_token"`
}
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func main() {
log.Println(err)
}

log.Println("======= Record =======")
log.Println(data)
mailers.SendMail(recordInterfaces, data)
}
}
Expand Down
4 changes: 1 addition & 3 deletions templates/send_code_template.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ <h1>Send Code</h1>
</div>
<div class="content">
<p>This is your link activation for your account </p>
<a href="{{ .ActivationCode }}">
Activation Code
</a>
{{ .ActivationCode }}
</div>
<div class="footer">
<p>If you did not perform this login or have any concerns, please contact our support team.</p>
Expand Down

0 comments on commit f5ef4b4

Please sign in to comment.