Skip to content

Commit

Permalink
demo emails: send from colyseus.io
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Jun 5, 2024
1 parent cfb48dc commit a402f07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/backend/src/config/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ auth.settings.onRegisterWithEmailAndPassword = async (email, password, options)

auth.settings.onSendEmailConfirmation = async (email, html, link) => {
await resend.emails.send({
from: 'web-template@colyseus.dev',
from: 'web-template@colyseus.io',
to: email,
subject: '[Colyseus Web Template]: Reset password',
html,
Expand All @@ -43,7 +43,7 @@ auth.settings.onSendEmailConfirmation = async (email, html, link) => {

auth.settings.onForgotPassword = async (email: string, html: string/* , resetLink: string */) => {
await resend.emails.send({
from: 'web-template@colyseus.dev',
from: 'web-template@colyseus.io',
to: email,
subject: '[Colyseus Web Template]: Reset password',
html,
Expand Down Expand Up @@ -86,4 +86,4 @@ export function createUser(profile: any) {
locale: profile.locale || "",
email: profile.email,
})
}
}

0 comments on commit a402f07

Please sign in to comment.