/** * Action: Login with 3rd party credentials. */ public function action_disconnect() { if ($this->external && $this->external->loaded()) { $this->external->delete(); $this->request->redirect(URL::user(Visitor::$user, 'settings')); } Request::back(); }