リビジョン 8fa10255 app/Model/User.php
| app/Model/User.php | ||
|---|---|---|
| 88 | 88 |
public function passwordConfirm($check){
|
| 89 | 89 |
//2つのパスワードフィールドが一致する事を確認する |
| 90 | 90 |
if($this->data['User']['password'] === $this->data['User']['password_confirm']){
|
| 91 |
// パスワードハッシュ化 |
|
| 92 |
$this->data[$this->name]['password'] = Security::hash( $password, 'sha512', true); |
|
| 93 | 91 |
return true; |
| 94 | 92 |
}else{
|
| 95 | 93 |
return false; |
他の形式にエクスポート: Unified diff