Skip to content

Commit

Permalink
🔑 created forgot-password and update-password routes. ⏰ updated otp t…
Browse files Browse the repository at this point in the history
…ests to verify otp expiration from 70 seconds to 1 second
  • Loading branch information
Gyoumi committed Dec 11, 2024
1 parent 9bd5bdc commit b09acf1
Show file tree
Hide file tree
Showing 19 changed files with 340 additions and 318 deletions.
4 changes: 3 additions & 1 deletion backend/.env.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ DATABASE_URL="postgres://postgres:postgres@localhost:5432"
DIRECT_URL="postgres://postgres:postgres@localhost:5432"
NODE_ENV=test
REDIS_PORT=6380
SESSION_SECRET=notsecret
SESSION_SECRET=notsecret
OTP_EXPIRES=1
CI=true
36 changes: 35 additions & 1 deletion backend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

172 changes: 0 additions & 172 deletions backend/prisma/migrations/20241118152321_init/migration.sql

This file was deleted.

9 changes: 0 additions & 9 deletions backend/prisma/migrations/20241118153206_init/migration.sql

This file was deleted.

11 changes: 0 additions & 11 deletions backend/prisma/migrations/20241206134721_init/migration.sql

This file was deleted.

5 changes: 0 additions & 5 deletions backend/prisma/migrations/20241208120626_init/migration.sql

This file was deleted.

12 changes: 0 additions & 12 deletions backend/prisma/migrations/20241208123401_init/migration.sql

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ CREATE TABLE "_KeywordToUser" (
"B" INTEGER NOT NULL
);

-- CreateIndex
CREATE UNIQUE INDEX "User_username_key" ON "User"("username");

-- CreateIndex
CREATE UNIQUE INDEX "User_email_key" ON "User"("email");

-- CreateIndex
CREATE UNIQUE INDEX "Society_name_key" ON "Society"("name");

Expand Down
4 changes: 2 additions & 2 deletions backend/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ datasource db {

model User {
id Int @id @default(autoincrement())
username String
email String
username String @unique
email String @unique
password String
salt String
dateJoined DateTime
Expand Down
Loading

0 comments on commit b09acf1

Please sign in to comment.