getRequest(); $action = $req->param('Action'); switch($action) { case 'change-password': return $this->changepassword(); default: return $this->httpError(404, 'Not found'); } } public function changepassword() { return $this->redirect( Director::absoluteURL( Security::singleton()->Link('changepassword') ), 303 ); } }