Services\UserManager::activateUser PHP Method

activateUser() public method

Activate a user
public activateUser ( $id ) : mixed | void
$id User ID
return mixed | void
    public function activateUser($id)
    {
        try {
            // Find the user using the user id
            $throttle = Sentry::findThrottlerByUserId($id);
            // UnBan the user
            $throttle->UnBan();
        } catch (Cartalyst\Sentry\Users\UserNotFoundException $e) {
            throw new Exception('User was not found.');
        }
    }