mirror of https://gitee.com/karson/fastadmin.git
优化验证码
parent
96dd46d32d
commit
4dabb80044
|
|
@ -151,13 +151,6 @@ class Common extends Api
|
|||
*/
|
||||
public function captcha($id = "")
|
||||
{
|
||||
if ($this->request->isPost()) {
|
||||
$captcha = $this->request->post("captcha");
|
||||
if (!\think\Validate::is($captcha, 'captcha')) {
|
||||
$this->error("验证码不正确");
|
||||
}
|
||||
$this->success("");
|
||||
}
|
||||
\think\Config::set([
|
||||
'captcha' => array_merge(config('captcha'), [
|
||||
'fontSize' => 44,
|
||||
|
|
|
|||
Loading…
Reference in New Issue