手机验证码注册

This commit is contained in:
chenbo 2024-01-02 18:20:41 +08:00
parent 8c6838fbf2
commit 27b695a965
1 changed files with 2 additions and 2 deletions

View File

@ -55,8 +55,8 @@ class LoginLogic extends BaseLogic
$password = create_password($params['password'], $passwordSalt);
$avatar = ConfigService::get('default_image', 'user_avatar');
// 校验短信验证码
$verifyCode = $params['verify_code'];
$params['account'] = intval($params['mobile']);
$verifyCode = intval($params['verify_code']);
$params['account'] = $params['mobile'];
if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) {
self::setError('验证码错误');
return false;