Skip to content

Commit

Permalink
fix: 后台更新密码不做格式校验(前端已做过校验)
Browse files Browse the repository at this point in the history
  • Loading branch information
BoBoooooo committed Dec 25, 2020
1 parent 0fe79bc commit 970a65c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/modules/user/user.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class UserService {

async updatePassword(user: User, password: string) {
try {
if (user && passwordVerify(password)) {
if (user) {
const newUser = await this.userRepository.findOne({
userId: user.userId
})
Expand Down

0 comments on commit 970a65c

Please sign in to comment.