cartalyst/sentry — pull request #28 by michaeldim (2012-01-04 07:11:26+00:00)
Title: Amend 'update' function and add methods to allow for disabling accounts

1.) Amend update function so that user 'status' can be set for disabling/enabling accounts

```php
$user = Sentry::user(25);
$update = $user->update(array(
'status' => 0,
));
```

2.) In addition to above add a couple of methods so that status can be quickly updated.

```php
if (Sentry::disable_user('john.doe@domain.com'))
{
// the user is now disabled
}
else
{
// the user is already disabled
}
```

```php
if (Sentry::enable_user('john.doe@domain.com'))
{
// the user is now enabled
}
else
{
// the user is already enabled
}
```