Skip to content

Commit

Permalink
Revert "Added two new function: user_exsist_by_id() and user_exsist_b…
Browse files Browse the repository at this point in the history
…y_email()"
  • Loading branch information
Emre Akay committed Dec 21, 2014
1 parent 8f5131a commit 758fd21
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,6 @@ sorry John you will be banned :(
```php
$this->aauth->ban_user(3);
```

You can check if the user exists in the database based on the user's id

```php
if($this->aauth->user_exsist_by_id(3)){
//user exsist
}else{
//user not exsist
}
```

Quick Start is done but thats not the end
Take a look [detailed Documentation from wiki](https://github.com/emreakay/CodeIgniter-Aauth/wiki/_pages)
Expand Down
19 changes: 0 additions & 19 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -803,25 +803,6 @@ public function is_banned($user_id) {
return FALSE;
}

/**
* user_exsist_by_id
* Check if user exist by user id
* @param $user_id
*
* @return bool
*/
public function user_exsist_by_id( $user_id ) {
$query = $this->CI->db->where('id', $user_id);

$query = $this->CI->db->get($this->config_vars['users']);

if ($query->num_rows() > 0)
return TRUE;
else
return FALSE;
}


/**
* Get user id
* Get user id from email address, if par. not given, return current user's id
Expand Down

0 comments on commit 758fd21

Please sign in to comment.