mirror of
https://github.com/cool-team-official/cool-admin-midway.git
synced 2026-01-19 03:58:11 +00:00
检查手机验证码
This commit is contained in:
parent
b82c32f90d
commit
d535082c07
@ -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) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user