手机验证码注册
This commit is contained in:
parent
8c6838fbf2
commit
27b695a965
|
@ -55,8 +55,8 @@ class LoginLogic extends BaseLogic
|
||||||
$password = create_password($params['password'], $passwordSalt);
|
$password = create_password($params['password'], $passwordSalt);
|
||||||
$avatar = ConfigService::get('default_image', 'user_avatar');
|
$avatar = ConfigService::get('default_image', 'user_avatar');
|
||||||
// 校验短信验证码
|
// 校验短信验证码
|
||||||
$verifyCode = $params['verify_code'];
|
$verifyCode = intval($params['verify_code']);
|
||||||
$params['account'] = intval($params['mobile']);
|
$params['account'] = $params['mobile'];
|
||||||
if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) {
|
if((new LoginAccountValidate())->checkCode($verifyCode, [], $params) === true) {
|
||||||
self::setError('验证码错误');
|
self::setError('验证码错误');
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue