<?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 $JcqUq) { goto hLMj9; LK5s1: $yZTO2->password('password', '安全验证密码'); goto JhSOG; JhSOG: $yZTO2->showReset(false); goto Z5Hxa; Z5Hxa: $yZTO2->formClass('wide'); goto Nswc9; PIOGh: $yZTO2 = Form::make(''); goto LK5s1; Nswc9: return $JcqUq->pageTitle('二次安全验证')->body(Box::make($yZTO2, '二次安全验证'))->handleForm($yZTO2, function (Form $yZTO2) use($C30Ed) { $U8wjN = $yZTO2->dataForming(); $azAb3 = $U8wjN['password']; $evk19 = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($azAb3) != $evk19); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $C30Ed); }); goto A7Rkt; SAAjw: $C30Ed = $WZ8dY->getTrimString('redirect', modstart_admin_url('')); goto PIOGh; hLMj9: $WZ8dY = InputPackage::buildFromInput(); goto SAAjw; A7Rkt: } }