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
1bb7ff3730
Add tests for modules/auth and modules/command-menu ( #3548 )
...
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Matheus <matheus_benini@hotmail.com >
2024-01-19 12:37:49 +01:00
036c8c0b36
Fixed user exist checking with trimmed email input #3195 ( #3251 )
2024-01-05 15:13:05 +01:00
db17d46af3
trimming email input in validation #3195 ( #3246 )
2024-01-05 09:37:06 +01:00
8483cf0b4b
POC: chore: use Nx workspace lint rules ( #3163 )
...
* chore: use Nx workspace lint rules
Closes #3162
* Fix lint
* Fix lint on BE
* Fix tests
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2024-01-03 23:07:25 +01:00
52e2a33e62
fix: handled submitting wihtout entering emailid ( #3149 )
2023-12-26 09:38:55 +01:00
0ae0bf73fd
fix: On Sign Out > Sign In, States are not loaded properly ( #3041 )
...
* fix: On Sign Out > Sign In, States are not loaded properly
* draft: reset on logout
* chore: lint
* chore: lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-21 21:44:17 +01:00
984fc76b94
Fix and enhance storybook:pages tests ( #3085 )
...
* Fix and enhance storybook:pages tests
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix and enhance storybook:pages tests
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* fix SettingsObjectFieldPreview
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix lint
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix jest
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Add more fixes
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix App.stories.tsx
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
* Fix tests
* Fix according to review
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: gitstart-app[bot] <57568882+gitstart-app[bot]@users.noreply.github.com>
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-20 18:36:58 +01:00
5f7442cf23
Add jest tests for twenty-front ( #2983 )
...
* Add jest tests for twenty-front
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
* Fix tests
---------
Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com >
Co-authored-by: v1b3m <vibenjamin6@gmail.com >
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-15 10:53:20 +01:00
a10f353a4c
feat: redirect to Plan Required page if subscription status is not active ( #2981 )
...
* feat: redirect to Plan Required page if subscription status is not active
Closes #2934
* feat: navigate to Plan Required in PageChangeEffect
* feat: add Twenty logo to Plan Required modal
* test: add Storybook story
* Fix lint
---------
Co-authored-by: Charles Bochet <charles@twenty.com >
2023-12-14 12:39:22 +01:00
5bdca9de6c
Migrate to a monorepo structure ( #2909 )
2023-12-10 18:10:54 +01:00