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',