質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -240,7 +240,43 @@
|
|
240
240
|
|
241
241
|
ちなみにBlowfishを使わずに、
|
242
242
|
|
243
|
-
登録・ログインをした場合には正常にログイン処理が行えま
|
243
|
+
登録・ログインをした場合には正常にログイン処理が行えます。
|
244
|
+
|
245
|
+
|
246
|
+
|
247
|
+
```php
|
248
|
+
|
249
|
+
public function beforeSave($options = array()) {
|
250
|
+
|
251
|
+
$this->data['User']['password'] = AuthComponent::password(
|
252
|
+
|
253
|
+
$this->data['User']['password']
|
254
|
+
|
255
|
+
);
|
256
|
+
|
257
|
+
return true;
|
258
|
+
|
259
|
+
}
|
260
|
+
|
261
|
+
}
|
262
|
+
|
263
|
+
```
|
264
|
+
|
265
|
+
beforeSaveメソッドを上記に変更、
|
266
|
+
|
267
|
+
UsersController.phpのcomponents内の
|
268
|
+
|
269
|
+
以下をコメントアウトすると正常に動作。
|
270
|
+
|
271
|
+
|
272
|
+
|
273
|
+
|
274
|
+
|
275
|
+
```php
|
276
|
+
|
277
|
+
'passwordHasher' => 'Blowfish'
|
278
|
+
|
279
|
+
```
|
244
280
|
|
245
281
|
|
246
282
|
|
@@ -250,6 +286,6 @@
|
|
250
286
|
|
251
287
|
|
252
288
|
|
253
|
-
|
289
|
+
他に必要な処理などがあるか、
|
254
290
|
|
255
291
|
何かお気付きの点があれば教えていただけますと幸いです。
|