cartalyst/sentry — Issue #17: User Insert ID not retrievable if  create method ($activation = true)
Author: michaeldim
Created: 2011-12-25 18:35:45+00:00
State: open

When using the create/register method if the activation parameter = true then the activationhash is returned and the insert_id of the user can no longer be retrieved.

```php
if ($activation)
{
return ($rows_affected > 0) ? base64_encode($user[$this->login_column]).'/'.$hash : false;
}
```

This just needs to be removed leaving:

```php
return ($rows_affected > 0) ? (int) $insert_id : false;
```

and then using the get method method to retrieve the activation hash field if required