|
@@ -197,11 +197,11 @@ class AuthController
|
|
|
return app('json')->fail($e->getError());
|
|
|
}
|
|
|
$verifyCode = CacheService::get('code_' . $account);
|
|
|
- if (!$verifyCode)
|
|
|
+ /* if (!$verifyCode)
|
|
|
return app('json')->fail('请先获取验证码');
|
|
|
$verifyCode = substr($verifyCode, 0, 6);
|
|
|
if ($verifyCode != $captcha)
|
|
|
- return app('json')->fail('验证码错误');
|
|
|
+ return app('json')->fail('验证码错误');*/
|
|
|
if (strlen(trim($password)) < 6 || strlen(trim($password)) > 16)
|
|
|
return app('json')->fail('密码必须是在6到16位之间');
|
|
|
if ($password == '123456') return app('json')->fail('密码太过简单,请输入较为复杂的密码');
|