Skip to content

Instantly share code, notes, and snippets.

@katzueno
Last active April 9, 2021 21:49
Show Gist options
  • Save katzueno/17325aecf98baf68f0739384854f02ce to your computer and use it in GitHub Desktop.
Save katzueno/17325aecf98baf68f0739384854f02ce to your computer and use it in GitHub Desktop.
<?php
namespace Application\Controller\SinglePage;
use Concrete\Controller\SinglePage\Login as CoreLogin;
class Login extends CoreLogin
{
public function view($type = null, $element = 'form')
{
$key=$this->request->query->get('key');
if ($key =="curryrice") {
parent::view($type, $element);
} else {
$this->replace('/page_not_found');
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment