mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-05 01:48:13 +00:00
检查手机验证码
This commit is contained in:
parent
b82c32f90d
commit
d535082c07
@ -59,8 +59,7 @@ export class UserLoginService extends BaseService {
|
||||
*/
|
||||
async phone(phone, smsCode) {
|
||||
// 1、检查短信验证码 2、登录
|
||||
//const check = await this.userSmsService.checkCode(phone, smsCode);
|
||||
const check = true;
|
||||
const check = await this.userSmsService.checkCode(phone, smsCode);
|
||||
if (check) {
|
||||
let user: any = await this.userInfoEntity.findOneBy({ phone });
|
||||
if (!user) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user