Skip to content

Commit

Permalink
fix(backend): bcrypt error
Browse files Browse the repository at this point in the history
  • Loading branch information
GaoNeng-wWw committed Mar 6, 2024
1 parent 6d1ef51 commit 8c90cf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dl-flow-backend/src/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class UserService {
throw new HttpException('user exists', HttpStatus.BAD_REQUEST);
}
const date = new Date();
const _password = hashSync(password, process.env.PWD_SALT);
const _password = hashSync(password, process.env.PWD_SALT.length ?? 10);
const userModel = new this.UserModel();
userModel.email = email;
userModel.password = _password;
Expand Down

0 comments on commit 8c90cf5

Please sign in to comment.