diff --git a/.env.example b/.env.example index 7e94ad7..cfd58f9 100644 --- a/.env.example +++ b/.env.example @@ -3,6 +3,6 @@ BETTER_AUTH_SECRET="randomly-generated-str" BETTER_AUTH_URL=http://localhost:3000 EMAIL_USER="sample-user@gmail.com" EMAIL_PASS="google-app-pwd" -EMAIL_HOST=smtp.gmail.com - -UPLOAD_STORAGE_PATH="full-path-to-image-store" \ No newline at end of file +EMAIL_FROM=smtp.gmail.com +EMAIL_HOST="sample-user@gmail.com" +UPLOAD_STORAGE_PATH="full-path-to-image-store" diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..5f23636 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,28 @@ +--- +name: Bug Report +about: Create a report to help us improve +title: 'Bug: ' +labels: 'bug' +assignees: '' +--- + +### Context / Problem + +[Describe the bug. What is the expected behavior, and what is actually happening? Provide context.] + +### Proposed Solution + +[If you have a solution in mind, describe it here.] + +### Implementation Details / Reproduction Steps + +[Provide steps to reproduce the bug, or implementation details if a fix is known.] + +1. +2. +3. + +### Acceptance Criteria + +- [ ] [Criteria 1 - E.g., The bug no longer occurs when doing X] +- [ ] [Criteria 2] diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..ae9305a --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,24 @@ +--- +name: Enhancement / DX Improvement +about: Suggest an idea for this project +title: 'DX/Feature: ' +labels: 'enhancement' +assignees: '' +--- + +### Context / Problem + +[Provide context. Why is this an issue specifically for local development or in the context of an EPICS project? What problem does this solve?] + +### Proposed Solution + +[Provide detailed steps on how to fix or implement it.] + +### Implementation Details + +[If known, provide code snippets or configuration examples showing exactly what needs to change.] + +### Acceptance Criteria + +- [ ] [Criteria 1] +- [ ] [Criteria 2] diff --git a/prisma/migrations/20260206183958/migration.sql b/prisma/migrations/20260206183958/migration.sql deleted file mode 100755 index 05d2994..0000000 --- a/prisma/migrations/20260206183958/migration.sql +++ /dev/null @@ -1,66 +0,0 @@ --- CreateTable -CREATE TABLE "user" ( - "id" TEXT NOT NULL PRIMARY KEY, - "name" TEXT NOT NULL, - "email" TEXT NOT NULL, - "emailVerified" BOOLEAN NOT NULL DEFAULT false, - "image" TEXT,smtp.example.com - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- CreateTable -CREATE TABLE "session" ( - "id" TEXT NOT NULL PRIMARY KEY, - "expiresAt" DATETIME NOT NULL, - "token" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "ipAddress" TEXT, - "userAgent" TEXT, - "userId" TEXT NOT NULL, - CONSTRAINT "session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "account" ( - "id" TEXT NOT NULL PRIMARY KEY, - "accountId" TEXT NOT NULL, - "providerId" TEXT NOT NULL, - "userId" TEXT NOT NULL, - "accessToken" TEXT, - "refreshToken" TEXT, - "idToken" TEXT, - "accessTokenExpiresAt" DATETIME, - "refreshTokenExpiresAt" DATETIME, - "scope" TEXT, - "password" TEXT, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - CONSTRAINT "account_userId_fkey" FOREIGN KEY ("userId") REFERENCES "user" ("id") ON DELETE CASCADE ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "verification" ( - "id" TEXT NOT NULL PRIMARY KEY, - "identifier" TEXT NOT NULL, - "value" TEXT NOT NULL, - "expiresAt" DATETIME NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL -); - --- CreateIndex -CREATE UNIQUE INDEX "user_email_key" ON "user"("email"); - --- CreateIndex -CREATE INDEX "session_userId_idx" ON "session"("userId"); - --- CreateIndex -CREATE UNIQUE INDEX "session_token_key" ON "session"("token"); - --- CreateIndex -CREATE INDEX "account_userId_idx" ON "account"("userId"); - --- CreateIndex -CREATE INDEX "verification_identifier_idx" ON "verification"("identifier"); diff --git a/server/utils/auth.ts b/server/utils/auth.ts index ceff0cb..eca339e 100644 --- a/server/utils/auth.ts +++ b/server/utils/auth.ts @@ -23,7 +23,7 @@ export const auth = betterAuth({ emailOTP({ async sendVerificationOTP({ email, otp, type }) { await transporter.sendMail({ - from: process.env.EMAIL_USER, + from: process.env.EMAIL_FROM, to: email, subject: 'OTP for nuxt-template', html: `Your OTP is: ${otp}`,