-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: remove the passwordResetToken field from the database (#6377)
# This PR - Fix #6305
- Loading branch information
Showing
3 changed files
with
58 additions
and
51 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
...nty-server/src/database/typeorm/core/migrations/1721738579379-DeletePasswordResetToken.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { MigrationInterface, QueryRunner } from 'typeorm'; | ||
|
||
export class DeletePasswordResetToken1721738579379 | ||
implements MigrationInterface | ||
{ | ||
public async up(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "core"."user" DROP COLUMN "passwordResetToken"`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "core"."user" DROP COLUMN "passwordResetTokenExpiresAt"`, | ||
); | ||
} | ||
|
||
public async down(queryRunner: QueryRunner): Promise<void> { | ||
await queryRunner.query( | ||
`ALTER TABLE "core"."user" ADD "passwordResetToken" character varying`, | ||
); | ||
await queryRunner.query( | ||
`ALTER TABLE "core"."user" ADD "passwordResetTokenExpiresAt" TIMESTAMP`, | ||
); | ||
} | ||
} |
52 changes: 26 additions & 26 deletions
52
packages/twenty-server/src/engine/core-modules/auth/auth.resolver.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters