mirror of
https://gitee.com/ulthon/ulthon_admin.git
synced 2026-07-07 02:22:48 +08:00
文件管理,接入验证码
This commit is contained in:
@@ -28,7 +28,10 @@ class Login extends Common
|
||||
$post_data = $this->request->post();
|
||||
|
||||
$validate = Validate::rule('account',Rule::isRequire())
|
||||
->rule('password',Rule::isRequire());
|
||||
->rule('password',Rule::isRequire())
|
||||
->rule('captcha',function($value){
|
||||
return \captcha_check($value)?true:'验证码错误';
|
||||
});
|
||||
|
||||
if(!$validate->check($post_data)){
|
||||
return json_message($validate->getError());
|
||||
|
||||
Reference in New Issue
Block a user