mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Login.php
This commit is contained in:
parent
68e38cae8c
commit
bfd8f6cb3a
@ -63,7 +63,7 @@ class Login extends Controller
|
|||||||
'password.require' => '登录密码不能为空!',
|
'password.require' => '登录密码不能为空!',
|
||||||
]);
|
]);
|
||||||
// if (MessageService::instance()->checkVerifyCode($data['verify'], $data['phone'])) {
|
// if (MessageService::instance()->checkVerifyCode($data['verify'], $data['phone'])) {
|
||||||
// // 验证码验证能完
|
// @验证码验证能完
|
||||||
// } else {
|
// } else {
|
||||||
// $this->error('验证失败!');
|
// $this->error('验证失败!');
|
||||||
// }
|
// }
|
||||||
@ -85,8 +85,8 @@ class Login extends Controller
|
|||||||
public function sendsms()
|
public function sendsms()
|
||||||
{
|
{
|
||||||
$data = $this->_vali([
|
$data = $this->_vali([
|
||||||
'phone.require' => '手机号不能为空!',
|
|
||||||
'phone.mobile' => '手机号格式错误!',
|
'phone.mobile' => '手机号格式错误!',
|
||||||
|
'phone.require' => '手机号不能为空!',
|
||||||
'secure.require' => '安全码不能为空!',
|
'secure.require' => '安全码不能为空!',
|
||||||
]);
|
]);
|
||||||
if ($data['secure'] !== sysconf('zt.secure_code')) $this->error('短信发送安全码错误!');
|
if ($data['secure'] !== sysconf('zt.secure_code')) $this->error('短信发送安全码错误!');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user