stop sending magic link in dev
This commit is contained in:
parent
7bbe082550
commit
86e7db59ee
1 changed files with 4 additions and 4 deletions
|
|
@ -154,10 +154,10 @@ func (s *EmailService) SendMagicLinkEmail(email, token, name string) error {
|
||||||
magicURL := fmt.Sprintf("%s/auth/magic-link/%s", s.appURL, token)
|
magicURL := fmt.Sprintf("%s/auth/magic-link/%s", s.appURL, token)
|
||||||
subject, body := magicLinkEmailTemplate(magicURL, s.appName)
|
subject, body := magicLinkEmailTemplate(magicURL, s.appName)
|
||||||
|
|
||||||
// if !s.isProd {
|
if !s.isProd {
|
||||||
// slog.Info("email sent (dev mode)", "type", "magic_link", "to", email, "subject", subject, "url", magicURL)
|
slog.Info("email sent (dev mode)", "type", "magic_link", "to", email, "subject", subject, "url", magicURL)
|
||||||
// return nil
|
return nil
|
||||||
// }
|
}
|
||||||
|
|
||||||
params := &EmailParams{
|
params := &EmailParams{
|
||||||
From: s.fromEmail,
|
From: s.fromEmail,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue