<?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 $mQ9Jw) { goto bf_KS; QPj_R: $TWMed = $fAvwi->getTrimString('redirect', modstart_admin_url('')); goto b5vZM; jYN0t: $ukDy3->password('password', '安全验证密码'); goto rolwd; b5vZM: $ukDy3 = Form::make(''); goto jYN0t; bf_KS: $fAvwi = InputPackage::buildFromInput(); goto QPj_R; rolwd: $ukDy3->showReset(false); goto tNLED; tNLED: $ukDy3->formClass('wide'); goto wV2Hy; wV2Hy: return $mQ9Jw->pageTitle('二次安全验证')->body(Box::make($ukDy3, '二次安全验证'))->handleForm($ukDy3, function (Form $ukDy3) use($TWMed) { $q62oK = $ukDy3->dataForming(); $gQvAP = $q62oK['password']; $LRHdH = modstart_config('Vendor_SecuritySecondVerifyPassword'); BizException::throwsIf('密码不正确', md5($gQvAP) != $LRHdH); Session::set('Vendor_SecuritySecondVerifyTime', time() + 3600); return Response::send(0, null, null, $TWMed); }); goto u8WL5; u8WL5: } }