twenty/packages/twenty-server
Deepak Kumar 46f0eb522f
GH-3245 Change password from settings page (#3538)
* GH-3245 add passwordResetToken and passwordResetTokenExpiresAt column on user entity

* Add password reset token expiry delay env variable

* Add generatePasswordResetToken mutation resolver

* Update .env.sample file on server

* Add password reset token and expiry migration script

* Add validate password reset token query and a dummy password update (WIP) resolver

* Fix bug in password reset token generate

* add update password mutation

* Update name and add email password reset link

* Add change password UI on settings page

* Add reset password route on frontend

* Add reset password form UI

* sign in user on password reset

* format code

* make PASSWORD_RESET_TOKEN_EXPIRES_IN optional

* add email template for password reset

* Improve error message

* Rename methods and DTO to improve naming

* fix formatting of backend code

* Update change password component

* Update password reset via token component

* update graphql files

* spelling fix

* Make password-reset route authless on frontend

* show token generation wait time

* remove constant from .env.example

* Add PASSWORD_RESET_TOKEN_EXPIRES_IN in docs

* refactor emails module in reset password

* update Graphql generated file

* update email template of password reset

* add space between date and text

* update method name

* fix lint issues

* remove unused code, fix indentation, and email link color

* update test file for auth and token service

* Fix ci: build twenty-emails when running tests

---------

Co-authored-by: martmull <martmull@hotmail.fr>
2024-01-25 10:28:48 +01:00
..
@types feat: migration can be applied on a specific schema & some enhancements (#2998) 2023-12-21 19:15:05 +01:00
patches Update scripts and documentation to use nx and new monorepo architecture (#2912) 2023-12-11 10:54:57 +01:00
scripts 3207 fix render self deploy (#3221) 2024-01-03 14:25:24 +01:00
src GH-3245 Change password from settings page (#3538) 2024-01-25 10:28:48 +01:00
test Remove flag relation select (#3588) 2024-01-23 09:59:00 +01:00
.env.example GH-3245 Change password from settings page (#3538) 2024-01-25 10:28:48 +01:00
.env.test Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.eslintrc.js Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.gitignore Upload image for use in blocknote editor (#3044) 2023-12-20 15:16:19 +01:00
.prettierignore Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
.prettierrc Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
jest.config.ts Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
nest-cli.json Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
package.json GH-3245 Change password from settings page (#3538) 2024-01-25 10:28:48 +01:00
tsconfig.build.json Migrate to a monorepo structure (#2909) 2023-12-10 18:10:54 +01:00
tsconfig.json Move emails to dedicated package (#3542) 2024-01-22 16:21:56 +01:00