<?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 $evgNV) { goto FfAYv; cm003: $OkcU0->formClass('wide'); goto HBPf5; mgwD_: $OkcU0->showReset(false); goto cm003; UT5_K: $uBQi3 = $Ylazq->getTrimString('redirect', modstart_admin_url('')); goto W1F_9; W1F_9: $OkcU0 = Form::make(''); goto jT4tM; FfAYv: $Ylazq = InputPackage::buildFromInput(); goto UT5_K; HBPf5: return $evgNV->pageTitle('二次安全验证')->body(Box::make($OkcU0, '二次安全验证'))->handleForm($OkcU0, function (Form $OkcU0) use($uBQi3) { $smBDO = $OkcU0->dataForming(); $cBZ1v = $smBDO['password']; $F9uDU = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($cBZ1v) != $F9uDU); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $uBQi3); }); goto pMX1P; jT4tM: $OkcU0->password('password', '安全验证密码'); goto mgwD_; pMX1P: } }