$this->Auth->password('password');
The salt Security.salt found in app\config\core.php affects the generated hashed password.
mix apache mysql php and bake a cake
$this->Auth->password('password');
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
if ($_SERVER['SERVER_NAME'] == 'localhost') {
define('CAKE_CORE_INCLUDE_PATH', '..' . DS . '..' . DS . 'cakephp');
} else {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
}
}
a2ensite
a2dissite
/etc/init.d/apache2 reload
php5
php5-common
libapache2-mod-php5
php5-pgsql
acl (access control list)
aro (access request object)
aco (access control object)
cake schema run create DbAcl
cake acl help
cake acl create aro root warriors
cake acl create aro root wizards
cake acl create aro root hobbits
cake acl create aro root visitors
cake acl view aro
Aro tree:
[20]warriors
[21]wizards
[22]hobbits
[23]visitors
cake acl create aro warriors Aragorn
cake acl create aro warriors Legolas
cake acl create aro warriors Gimli
cake acl create aro wizards Gandalf
cake acl create aro hobbits Frodo
cake acl create aro hobbits Bilbo
cake acl create aro hobbits Merry
cake acl create aro hobbits Pippin
cake acl create aro visitors Gollum
cake acl view aro
Aro tree:
[20]warriors
[25]Aragorn
[26]Legolas
[27]Gimli
[21]wizards
[28]Gandalf
[22]hobbits
[24]Frodo
[29]Bilbo
[30]Merry
[31]Pippin
[23]visitors
[32]Gollum
cake acl create aco root Weapons
cake acl create aco root Rings
cake acl create aco root PorkChops
cake acl create aco root DiplomaticEfforts
cake acl create aco root Weapons
cake acl view aco
Aco tree:
[1]Weapons
[2]Rings
[3]PorkChops
[4]DiplomaticEfforts
[5]Ales
cake acl grant warriors Weapons all
cake acl check Legolas Weapons read
Legolas is allowed.
cake acl deny Legolas Weapons read
cake acl check Legolas Weapons read
Legolas is not allowed.
cake acl check Legolas Weapons create
Legolas is allowed.