<?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 $yfn4d) { goto BNwjW; PMTlM: $AyrhG->formClass('wide'); goto hkAWk; PQEIB: $AyrhG = Form::make(''); goto abTDi; BNwjW: $i3uTh = InputPackage::buildFromInput(); goto b2F5H; abTDi: $AyrhG->password('password', '安全验证密码'); goto KUY5S; hkAWk: return $yfn4d->pageTitle('二次安全验证')->body(Box::make($AyrhG, '二次安全验证'))->handleForm($AyrhG, function (Form $AyrhG) use($MGyuv) { $GpXwG = $AyrhG->dataForming(); $nwrAH = $GpXwG['password']; $ZUzqZ = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($nwrAH) != $ZUzqZ); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $MGyuv); }); goto OYxFP; KUY5S: $AyrhG->showReset(false); goto PMTlM; b2F5H: $MGyuv = $i3uTh->getTrimString('redirect', modstart_admin_url('')); goto PQEIB; OYxFP: } }