aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllerconnect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-09 20:19:37 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-09 20:19:37 +0200
commitf29bb8688c02325196d7d5bd03fc528414f3055f (patch)
tree0043a0b21e69432010f2e907abf9034dee458076 /app/class/Controllerconnect.php
parent0e66e1d890ca775b50b43990a4d92c035c1eb5b2 (diff)
downloadwcms-f29bb8688c02325196d7d5bd03fc528414f3055f.tar.gz
wcms-f29bb8688c02325196d7d5bd03fc528414f3055f.zip
connect using user and password close #70
Diffstat (limited to 'app/class/Controllerconnect.php')
-rw-r--r--app/class/Controllerconnect.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/class/Controllerconnect.php b/app/class/Controllerconnect.php
index e9af86a..8555e92 100644
--- a/app/class/Controllerconnect.php
+++ b/app/class/Controllerconnect.php
@@ -36,8 +36,8 @@ class Controllerconnect extends Controller
public function login($route, $id = null)
{
- if (isset($_POST['pass'])) {
- $this->user = $this->usermanager->passwordcheck($_POST['pass']);
+ if (!empty($_POST['pass']) && !empty($_POST['user'])) {
+ $this->user = $this->usermanager->passwordcheck($_POST['user'], $_POST['pass']);
if ($this->user != false) {
if ($this->user->expiredate() === false || $this->user->level() === 10 || $this->user->expiredate('date') > $this->now) {
$this->user->connectcounter();