From 1ca61665612f4a7da926f6834801bb8eece2712e Mon Sep 17 00:00:00 2001 From: REJack Date: Thu, 22 Aug 2019 08:33:51 +0200 Subject: [PATCH] fixed error without social providers in views & fixed loginFast --- app/Libraries/Aauth.php | 4 ++-- app/Views/Account/Home.php | 2 ++ app/Views/Account/Login.php | 16 ++++++++-------- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/app/Libraries/Aauth.php b/app/Libraries/Aauth.php index 02c7873..f9701af 100644 --- a/app/Libraries/Aauth.php +++ b/app/Libraries/Aauth.php @@ -500,6 +500,8 @@ class Aauth $userModel->where('id', $userId); $userModel->where('banned', 0); + $user = $userModel->asArray()->first(); + $this->session->set('user', [ 'id' => $user['id'], 'username' => $user['username'], @@ -612,8 +614,6 @@ class Aauth $userId = (int) @$this->session->user['id']; } - $userModel = $this->getModel('User'); - return $this->isMember($this->config->groupAdmin, $userId); } diff --git a/app/Views/Account/Home.php b/app/Views/Account/Home.php index 16668b2..37d9504 100644 --- a/app/Views/Account/Home.php +++ b/app/Views/Account/Home.php @@ -22,6 +22,7 @@ +
@@ -34,6 +35,7 @@
+ diff --git a/app/Views/Account/Login.php b/app/Views/Account/Login.php index 9aacddf..6afdc27 100644 --- a/app/Views/Account/Login.php +++ b/app/Views/Account/Login.php @@ -11,13 +11,13 @@
- - - - - - - + + + + + + +
@@ -36,7 +36,7 @@
- +