From 0d8dea3c01134e0cdba6a040f3233d6eaf2c57fd Mon Sep 17 00:00:00 2001 From: hawind Date: Fri, 2 Apr 2021 15:10:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=83=A8=E5=88=86=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=9C=A8=E6=BC=94=E7=A4=BA=E6=A8=A1=E5=BC=8F=E4=B8=8B?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=A6=81=E6=AD=A2=E6=93=8D=E4=BD=9C=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Gdoo/User/Controllers/AuthController.php | 3 +-- app/Gdoo/User/Controllers/ProfileController.php | 11 +++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/app/Gdoo/User/Controllers/AuthController.php b/app/Gdoo/User/Controllers/AuthController.php index 96966179..3f828ac9 100644 --- a/app/Gdoo/User/Controllers/AuthController.php +++ b/app/Gdoo/User/Controllers/AuthController.php @@ -161,8 +161,7 @@ class AuthController extends Controller */ public function qrcode() { - return $this->display([ - ]); + return $this->display(); } /** diff --git a/app/Gdoo/User/Controllers/ProfileController.php b/app/Gdoo/User/Controllers/ProfileController.php index 791c96ac..07001c96 100644 --- a/app/Gdoo/User/Controllers/ProfileController.php +++ b/app/Gdoo/User/Controllers/ProfileController.php @@ -28,6 +28,9 @@ class ProfileController extends DefaultController public function index() { if (Request::method() == 'POST') { + + License::demoCheck(); + $gets = Request::all(); $user = User::find(Auth::id()); @@ -70,6 +73,9 @@ class ProfileController extends DefaultController public function secret() { if (Request::method() == 'POST') { + + License::demoCheck(); + $id = Request::get('id'); $t = new Totp(); $secretKey = $t->generateSecret(); @@ -83,6 +89,9 @@ class ProfileController extends DefaultController public function password() { if (Request::method() == 'POST') { + + License::demoCheck(); + $gets = Request::all(); $user = User::find(Auth::id()); @@ -128,6 +137,8 @@ class ProfileController extends DefaultController if (Request::method() == 'POST') { + License::demoCheck(); + if (Request::hasFile('image')) { $rules = [ 'image' => 'image',