Skip to content

Commit

Permalink
fix: register failed(Close #405)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerwin committed Jan 10, 2024
1 parent 1d644e7 commit 36a31b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ COPY --from=frontend /app/dist /app/public

COPY --from=backend /app/build /app/build

COPY --from=backend /app/src/utils/templates /app/build/templates
COPY --from=backend /app/src/utils/templates /app/build/utils/templates

EXPOSE 3002

Expand Down
4 changes: 4 additions & 0 deletions service/src/utils/mail.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
import * as fs from 'fs'
import * as path from 'path'
import { fileURLToPath } from 'node:url'
import { dirname } from 'node:path'
import nodemailer from 'nodemailer'
import type { MailConfig } from '../storage/model'
import { getCacheConfig } from '../storage/config'

const __dirname = dirname(fileURLToPath(import.meta.url))

export async function sendVerifyMail(toMail: string, verifyUrl: string) {
const config = (await getCacheConfig())

Expand Down

0 comments on commit 36a31b0

Please sign in to comment.