aboutsummaryrefslogtreecommitdiff
path: root/app/class/Controllerconnect.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2020-04-10 15:33:49 +0200
committervincent-peugnet <v.peugnet@free.fr>2020-04-10 15:33:49 +0200
commit7503edafe206d9f16da4d12b6dea0458ca9c2432 (patch)
tree9cb2e207dac95d4ffe49e5ef1c06ebfaefa8053e /app/class/Controllerconnect.php
parentdef7a991b0112f906fccf802587e8bc6b19bae29 (diff)
parentc63a0228333e18fe2b1b84c29ab70af82698bdab (diff)
downloadwcms-7503edafe206d9f16da4d12b6dea0458ca9c2432.tar.gz
wcms-7503edafe206d9f16da4d12b6dea0458ca9c2432.zip
Merge branch 'implement-password'
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();