Clean-up user model

This commit is contained in:
Eike Foken
2011-09-21 02:14:29 +02:00
parent 76f3134756
commit 0442f39664
2 changed files with 30 additions and 34 deletions

View File

@@ -25,6 +25,7 @@
* Simple auth system.
*
* @package ScattPort
* @subpackage Libraries
* @author Eike Foken <kontakt@eikefoken.de>
*/
class Access {
@@ -90,7 +91,7 @@ class Access {
public function forgottenPassword($email) {
if ($this->CI->user->forgottenPassword($email)) {
// get user information
$user = $this->CI->user->getUserByEmail($email);
$user = $this->CI->user->getByEmail($email);
$data = array(
'username' => $user['username'],
@@ -258,7 +259,7 @@ class Access {
* @return object
*/
public function getCurrentUser() {
return $this->CI->user->getUserByID($this->CI->session->userdata('user_id'));
return $this->CI->user->getById($this->CI->session->userdata('user_id'));
}
/**