MyController::reset_rss_key PHP Method

reset_rss_key() public method

public reset_rss_key ( )
    public function reset_rss_key()
    {
        //TODO: POST check
        $this->User->RssToken->destroy($this->current_user['id'], 'feeds');
        $this->Session->setFlash(__('Your RSS access key was reset.'), 'default', array('class' => 'flash flash_notice'));
        $this->redirect('account');
    }