Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

change authorization to authentication in tutorial

  • Loading branch information...
commit dcc6881ce6238104c74fffea101122aaf497ffb7 1 parent f078ce7
ceeram authored
10  en/tutorials-and-examples/blog-auth-example/auth.rst
Source Rendered
@@ -149,8 +149,8 @@ will show just the add.ctp::
149 149
     <?php echo $this->Form->end(__('Submit'));?>
150 150
     </div>
151 151
 
152  
-Authorization (login and logout)
153  
-================================
  152
+Authentication (login and logout)
  153
+=================================
154 154
 
155 155
 We're now ready to add our authentication layer. In CakePHP this is handled
156 156
 by the :php:class:`AuthComponent`, a class responsible for requiring login for certain
@@ -164,7 +164,7 @@ file and add the following lines::
164 164
     // app/Controller/AppController.php
165 165
     class AppController extends Controller {
166 166
         //...
167  
-        
  167
+
168 168
         public $components = array(
169 169
             'Session',
170 170
             'Auth' => array(
@@ -220,9 +220,9 @@ and add the following::
220 220
     // app/Model/User.php
221 221
     App::uses('AuthComponent', 'Controller/Component');
222 222
     class User extends AppModel {
223  
-        
  223
+
224 224
     // ...
225  
-    
  225
+
226 226
     public function beforeSave() {
227 227
         if (isset($this->data[$this->alias]['password'])) {
228 228
             $this->data[$this->alias]['password'] = AuthComponent::password($this->data[$this->alias]['password']);

0 notes on commit dcc6881

Please sign in to comment.
Something went wrong with that request. Please try again.