-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Feature/1164 #1165
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
base: main
Are you sure you want to change the base?
Feature/1164 #1165
Conversation
|
@DominikLudwiczak is attempting to deploy a commit to the Listinai Team on Vercel. A member of the Team first needs to authorize it. |
| import { AddTeamMemberDto } from '@gitroom/nestjs-libraries/dtos/settings/add.team.member.dto'; | ||
| import { ApiTags } from '@nestjs/swagger'; | ||
| import { AuthorizationActions, Sections } from '@gitroom/backend/services/auth/permissions/permission.exception.class'; | ||
| import { User } from 'facebook-nodejs-business-sdk'; |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
right, I pushed change
| @Body() body: ChangePasswordDto | ||
| ) { | ||
| const userWithPassword = await this._userService.getUserById(user.id); | ||
| if(!userWithPassword || !AuthChecker.comparePassword(body.oldPassword, userWithPassword.password)) { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
right, changed it and also in setting tab on frontend part I added condition that only LOCAL users can see change password tab
| const userWithPassword = await this._userService.getUserById(user.id); | ||
| if(userWithPassword.providerName !== 'LOCAL') { | ||
| return false; | ||
| } | ||
| if(!userWithPassword || !AuthChecker.comparePassword(body.oldPassword, userWithPassword.password)) { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
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.
fixed
What kind of change does this PR introduce?
applies password change feature
Why was this change needed?
#1164
Other information:
Checklist:
Put a "X" in the boxes below to indicate you have followed the checklist;