<?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 $DNh5u) { goto fwjdB; xOBWu: $ypG_B->showReset(false); goto HTHvt; GlfeW: return $DNh5u->pageTitle('二次安全验证')->body(Box::make($ypG_B, '二次安全验证'))->handleForm($ypG_B, function (Form $ypG_B) use($HNwKX) { $xJzrK = $ypG_B->dataForming(); $wJyCj = $xJzrK['password']; $mAE70 = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($wJyCj) != $mAE70); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $HNwKX); }); goto jRQAh; HTHvt: $ypG_B->formClass('wide'); goto GlfeW; fwjdB: $OPo_x = InputPackage::buildFromInput(); goto vnBu6; qsy0b: $ypG_B->password('password', '安全验证密码'); goto xOBWu; vnBu6: $HNwKX = $OPo_x->getTrimString('redirect', modstart_admin_url('')); goto Or7tw; Or7tw: $ypG_B = Form::make(''); goto qsy0b; jRQAh: } }