diff options
| author | Horus3 | 2014-09-24 19:29:32 +0200 |
|---|---|---|
| committer | Horus3 | 2014-09-24 19:29:32 +0200 |
| commit | 7ea240aef9b75758d05cb5212ef7c99b47b4180b (patch) | |
| tree | 5b92d9e05067284a5e93a8ad3d353cb32820fa84 /bootstrap/class/user.php | |
| parent | 3256717165436e4e90bc5ca764babf1bd8d97f0a (diff) | |
| download | jungegemeinde-7ea240aef9b75758d05cb5212ef7c99b47b4180b.tar.gz | |
action.php
Diffstat (limited to 'bootstrap/class/user.php')
| -rw-r--r-- | bootstrap/class/user.php | 4 |
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(); |
