From 7ea240aef9b75758d05cb5212ef7c99b47b4180b Mon Sep 17 00:00:00 2001 From: Horus3 Date: Wed, 24 Sep 2014 19:29:32 +0200 Subject: action.php --- bootstrap/class/user.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bootstrap/class') diff --git a/bootstrap/class/user.php b/bootstrap/class/user.php index 321ca57..edbcaa6 100644 --- a/bootstrap/class/user.php +++ b/bootstrap/class/user.php @@ -74,7 +74,9 @@ class jg { return $this->login; } - public function login($password){ + public function login($user, $password){ + if ( is_null($this->username) ) + $this->__construct($user); # get hashed password from the database $hashed_password = $this->getPassword(); -- cgit v1.2.3