aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/class/user.php
diff options
context:
space:
mode:
authorHorus32014-09-24 19:29:32 +0200
committerHorus32014-09-24 19:29:32 +0200
commit7ea240aef9b75758d05cb5212ef7c99b47b4180b (patch)
tree5b92d9e05067284a5e93a8ad3d353cb32820fa84 /bootstrap/class/user.php
parent3256717165436e4e90bc5ca764babf1bd8d97f0a (diff)
downloadjungegemeinde-7ea240aef9b75758d05cb5212ef7c99b47b4180b.tar.gz
action.php
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();