<?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 $j13Tr) { goto no0DL; fFmJN: $j1j5n = $Nw6ws->getTrimString('redirect', modstart_admin_url('')); goto O331Y; wLLQO: $s4jIj->password('password', '安全验证密码'); goto e8BiI; e8BiI: $s4jIj->showReset(false); goto f42CJ; O331Y: $s4jIj = Form::make(''); goto wLLQO; TzuhY: return $j13Tr->pageTitle('二次安全验证')->body(Box::make($s4jIj, '二次安全验证'))->handleForm($s4jIj, function (Form $s4jIj) use($j1j5n) { $Pg57y = $s4jIj->dataForming(); $iJwHS = $Pg57y['password']; $WVRKU = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($iJwHS) != $WVRKU); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $j1j5n); }); goto BfMWp; f42CJ: $s4jIj->formClass('wide'); goto TzuhY; no0DL: $Nw6ws = InputPackage::buildFromInput(); goto fFmJN; BfMWp: } }