リビジョン 5ec4ad9d app/Controller/AppController.php
app/Controller/AppController.php | ||
---|---|---|
41 | 41 |
public $components = array( |
42 | 42 |
'DebugKit.Toolbar', |
43 | 43 |
'Session', |
44 |
/*
|
|
44 |
'Flash',
|
|
45 | 45 |
'Auth' => array( |
46 |
'loginRedirect' => array( |
|
47 |
'controller' => 'users', |
|
48 |
'action' => 'index' |
|
49 |
), |
|
50 |
'logoutRedirect' => array( |
|
51 |
'controller' => 'users', |
|
52 |
'action' => 'login', |
|
53 |
'home' |
|
54 |
), |
|
55 |
'authenticate' => array( |
|
56 |
'Form' => array( |
|
57 |
'fields' => array( |
|
58 |
'username' => 'login_id', //Default is 'username' in the userModel |
|
59 |
'password' => 'password' //Default is 'password' in the userModel |
|
60 |
), |
|
61 |
'passwordHasher' => 'Blowfish' |
|
62 |
) |
|
63 |
), |
|
46 | 64 |
'flash' => array( |
47 | 65 |
'element' => 'alert', |
48 | 66 |
'key' => 'auth', |
... | ... | |
52 | 70 |
) |
53 | 71 |
) |
54 | 72 |
) |
55 |
*/ |
|
56 | 73 |
); |
57 | 74 |
} |
他の形式にエクスポート: Unified diff