fixed user class, missing method

This commit is contained in:
Sebastian Grewe 2013-05-12 12:18:56 +02:00
parent 187fb92272
commit 1194c7fb33

View File

@ -26,6 +26,10 @@ class User {
return $this->sError; return $this->sError;
} }
public function getUserName($userID) {
return $this->getSingle($userID, 'id', 'username', $this->table);
}
public function checkLogin($username, $password) { public function checkLogin($username, $password) {
$this->debug->append("Checking login for $username with password $password", 2); $this->debug->append("Checking login for $username with password $password", 2);
if ( $this->checkUserPassword($username, $password) ) { if ( $this->checkUserPassword($username, $password) ) {