mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2024-11-01 22:20:30 +08:00
验证码错误判断
This commit is contained in:
parent
26b0e37dc2
commit
8477c28590
@ -72,6 +72,8 @@ export class UserLoginService extends BaseService {
|
|||||||
await this.userInfoEntity.insert(user);
|
await this.userInfoEntity.insert(user);
|
||||||
}
|
}
|
||||||
return this.token({ id: user.id });
|
return this.token({ id: user.id });
|
||||||
|
}else{
|
||||||
|
throw new CoolCommException('验证码错误');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user