Beispiel #1
0
 public function revokeDevice()
 {
     $appId = JRequest::getVar('consumerId');
     $apps = new Applications();
     $mainframe = JFactory::getApplication();
     if ($apps->removeDevice($appId)) {
         $mainframe->redirect(JRoute::_('index.php?option=com_profile&view=edit&task=applications', false), JText::_('COM_PROFILE_DEVICE_REMOVE_SUCCESS'));
     } else {
         $mainframe->redirect(JRoute::_('index.php?option=com_profile&view=edit&task=applications', false), JText::_('COM_PROFILE_DEVICE_REMOVE_ERROR'), 'error');
     }
 }