手机验证码注册
This commit is contained in:
parent
8c6838fbf2
commit
27b695a965
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue