-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Emails are stored in lowercase #82
Conversation
src/auth/service/auth.service.ts
Outdated
@@ -131,6 +131,7 @@ export class AuthService { | |||
} | |||
|
|||
async resendEmailVerificationCode(email: string) { | |||
email = email.toLowerCase(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we just use the transform
property from the DTO every time we receive an email (maybe except for linkedin auth where we can just pass it as a lowercased string from the controller). This way we don't have to modify a property in place
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I'll just add a LowercaseEmail
class with just the email property. That should do it.
8347a96
to
a65b7de
Compare
* chore(ci): Made pipeline fixes (#60) * Adding PR title and es lint, prettier, unit test and e2e test checks * Adding commands based on package.json * added husky * order checks * folder updates * folder updates * eslint check * replaced * Add pnpm * refactored installation for pnpm * push diff validate pr yml * deleted commitlintrc file * added makefile * update working directory of ci * update .gitignore * update ci * update ci --------- Co-authored-by: Bhavya Jain <[email protected]> Co-authored-by: Ben <[email protected]> * improve workflow * fixing pr title validation identation issue * update readme (#62) * test(api): Added cleanup test to user module (#61) * added afterALl in user test * update CI * Update README.md * Update README.md * added redis (#63) * refactor: Moved items of backend folder to root (#65) * refactored backend folder * fixed tests * fixed tests * fix: Migrate to ioredis package (#70) * migrate to ioredis * update lockfile * fixed tests * update CI workflow * Update README.md * Update README-backend.md * feat: write-review-page (#71) * Add joined at date for searched user * Update user search query to respect respect http standards * Enable cors * minor fixes * Correct relations * Check if users are connected when doing an user search * fix db structure * fix namings * feat: auth flow changes (#73) * Add joined at date for searched user * Update user search query to respect respect http standards * Enable cors * minor fixes * Correct relations * Check if users are connected when doing an user search * fix db structure * fix namings * Use passwordless signup * Return props needed for signin redirection * feat: Added feature to search by social profile (#77) * added feature to search by social profile * add linkedin profile fetching functionality * finishing touches * delete user controller test file * fixed inconsistencies in e2e tests * made search user endpoint public * feat: Emails are stored in lowercase (#82) * feat: Emails are stored in lowercase * organized code * fix: dashboard various fixes (#78) * Add joined at date for searched user * Update user search query to respect respect http standards * Correct relations * Check if users are connected when doing an user search * fix db structure * Fix: is connection should be true when userId is in the followers * Do not use mutler for uploading profile pics * Context: React native web sends base64 images that cannot be parsed by mutler * update review properties * add get user endpoint * use headline insted of jobtitle * remove console logs * remove console log * Move reviwes in dedicated controller. * Rename ratings to reviews * Use ratings only for professionalism/communication/reliability * Create reviews controller and service * Remove route with */self. * enable swagger plugin * review db structure changes: * change id from int to string * add state * add favorite review model * Add ability to like/unlike reviews and review state * add ability to modify and update own review * feat: add connections controller and move specific endpoints from user controller here * fix: review annonymous property * fix: add isEmailVerified to connection * fix rebase errors * Move search by profile url in connections. * Add authType property on connectionDto * remove jobTitle property. Use headline everywhere * Return transformed user when social account is already existen * add logging * fix reviews issues * rename dto folder * rename methods * make only one DB query for craeting a connection * change DTO folder to a random name (because gh is not case sensitive and doesn't see lowering the case of the file as an actual change) * rename dto folder * squash migrations * fix tests * feat: implement user settings endpoints (#84) * feat: user profile (#85) * fix: Docker builds were not running due to module errors (#86) * feat: implement push notifications (#87) * feat: implement push notifications * fix tests --------- Co-authored-by: Rajdip Bhattacharya <[email protected]> Co-authored-by: Bhavya Jain <[email protected]> Co-authored-by: Ben <[email protected]> Co-authored-by: Adelina Enache <[email protected]>
Fixes #81