<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Admin\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Input\InputPackage; 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 $iXUoW) { goto kAmhq; kAmhq: $Km8YS = InputPackage::buildFromInput(); goto Nx6vU; Nx6vU: $Ix_Nr = $Km8YS->getTrimString('redirect', modstart_admin_url('')); goto EYzG3; EYzG3: $NX6uw = Form::make(''); goto j4XZr; j4XZr: $NX6uw->password('password', '安全验证密码'); goto bHppz; OZIT_: $NX6uw->formClass('wide'); goto UZAI7; bHppz: $NX6uw->showReset(false); goto OZIT_; UZAI7: return $iXUoW->pageTitle('二次安全验证')->body(Box::make($NX6uw, '二次安全验证'))->handleForm($NX6uw, function (Form $NX6uw) use($Ix_Nr) { $avcnU = $NX6uw->dataForming(); $SoauJ = $avcnU['password']; $hiGGQ = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($SoauJ) != $hiGGQ); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $Ix_Nr); }); goto wutp7; wutp7: } }