<?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 $WLCMC) { goto xO4ps; VOuqD: $yTnoO = $tBuXm->getTrimString('redirect', modstart_admin_url('')); goto vutfI; yFpYh: $hUMbi->showReset(false); goto EzPhD; vutfI: $hUMbi = Form::make(''); goto kB5KI; kB5KI: $hUMbi->password('password', '安全验证密码'); goto yFpYh; xO4ps: $tBuXm = InputPackage::buildFromInput(); goto VOuqD; EzPhD: $hUMbi->formClass('wide'); goto vjmTx; vjmTx: return $WLCMC->pageTitle('二次安全验证')->body(Box::make($hUMbi, '二次安全验证'))->handleForm($hUMbi, function (Form $hUMbi) use($yTnoO) { $cwaKT = $hUMbi->dataForming(); $wxnHg = $cwaKT['password']; $QjRRV = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($wxnHg) != $QjRRV); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $yTnoO); }); goto kRMNg; kRMNg: } }