aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/class/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap/class/user.php')
-rw-r--r--bootstrap/class/user.php4
1 files changed, 3 insertions, 1 deletions
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();