<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Edwin404\Base\Support\InputPackage; use Illuminate\Routing\Controller; use Illuminate\Support\Facades\Session; use ModStart\Admin\Layout\AdminPage; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Response; use ModStart\Form\Form; use ModStart\Widget\Box; class SecurityController extends Controller { public static $PermitMethodMap = array('*' => '*'); public function secondVerify(AdminPage $hpBip) { goto Dvsiw; K3L4b: $l3dqy = Form::make(''); goto OPf0o; SkGE5: $XqvdZ = $Q9nmo->getTrimString('redirect', modstart_admin_url('')); goto K3L4b; O_HPm: $l3dqy->showReset(false); goto LULZa; LULZa: $l3dqy->formClass('wide'); goto LT_0x; LT_0x: return $hpBip->pageTitle('二次安全验证')->body(Box::make($l3dqy, '二次安全验证'))->handleForm($l3dqy, function (Form $l3dqy) use($XqvdZ) { $MGhSY = $l3dqy->dataForming(); $yzR4u = $MGhSY['password']; $luJvJ = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($yzR4u) != $luJvJ); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $XqvdZ); }); goto I_jqr; Dvsiw: $Q9nmo = InputPackage::buildFromInput(); goto SkGE5; OPf0o: $l3dqy->password('password', '安全验证密码'); goto O_HPm; I_jqr: } }