检查手机验证码

This commit is contained in:
cool_team 2023-05-30 16:43:26 +08:00
parent b82c32f90d
commit d535082c07

View File

@ -59,8 +59,7 @@ export class UserLoginService extends BaseService {
*/ */
async phone(phone, smsCode) { async phone(phone, smsCode) {
// 1、检查短信验证码 2、登录 // 1、检查短信验证码 2、登录
//const check = await this.userSmsService.checkCode(phone, smsCode); const check = await this.userSmsService.checkCode(phone, smsCode);
const check = true;
if (check) { if (check) {
let user: any = await this.userInfoEntity.findOneBy({ phone }); let user: any = await this.userInfoEntity.findOneBy({ phone });
if (!user) { if (!user) {