Skip to content

Instantly share code, notes, and snippets.

@violetyk
Created January 23, 2013 07:33
Show Gist options
  • Save violetyk/4602867 to your computer and use it in GitHub Desktop.
Save violetyk/4602867 to your computer and use it in GitHub Desktop.
// 社外からはBASIC認証
if (Configure::read('debug') == 0 && !$this->_inOfficeNetwork()) {
$this->Security->loginOptions = array('type' => 'Basic');
$this->Security->loginUsers = Configure::read('BasicAuthentication');
$this->Security->requireLogin('*');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment