リビジョン a5ebb280 app/Controller/UsersController.php
| app/Controller/UsersController.php | ||
|---|---|---|
| 62 | 62 |
}else{
|
| 63 | 63 |
} |
| 64 | 64 |
} |
| 65 |
|
|
| 66 |
// if (!empty( $this->data)){
|
|
| 67 |
// // 保存 |
|
| 68 |
// if( $this->User->set( $this->data)){
|
|
| 69 |
// // if( $this->User->save( $this->data)){
|
|
| 70 |
// // ユーザアクティベート(本登録)用URLの作成 |
|
| 71 |
// $url = |
|
| 72 |
// DS . strtolower($this->name) . // コントローラ |
|
| 73 |
// DS . 'activate' . // アクション |
|
| 74 |
// DS . $this->User->id . // ユーザID |
|
| 75 |
// DS . $this->User->getActivationHash(); // ハッシュ値 |
|
| 76 |
// $url = Router::url( $url, true); // ドメイン(+サブディレクトリ)を付与 |
|
| 77 |
// // メール送信 |
|
| 78 |
// // return |
|
| 79 |
// $this->redirect(array('action' => 'confirm'));
|
|
| 80 |
// $this->Session->write('register',$this->request->data);
|
|
| 81 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
| 82 |
// } else {
|
|
| 83 |
// // バリデーションエラーメッセージを渡す |
|
| 84 |
// $this->Session->setFlash( '入力エラー'); |
|
| 85 |
// } |
|
| 86 |
// } |
|
| 87 | 65 |
} |
| 88 | 66 |
|
| 89 | 67 |
/** |
| ... | ... | |
| 107 | 85 |
if( $this->User->save($this->Session->read('register'))){
|
| 108 | 86 |
// メール送信 |
| 109 | 87 |
$this->set('register',$this->Session->read('register'));
|
| 110 |
$name = $this->Session->read('register.user.login_id');
|
|
| 111 |
$mail = $this->Session->read('register.user.email');
|
|
| 88 |
$name = $this->Session->read('register.User.login_id');
|
|
| 89 |
$mail = $this->Session->read('register.User.email');
|
|
| 112 | 90 |
// ユーザアクティベート(本登録)用URLの作成 |
| 113 | 91 |
$url = |
| 114 | 92 |
DS . 'users' . // コントローラ |
| ... | ... | |
| 127 | 105 |
$Email->to('hasegawa@i-hearts.jp');
|
| 128 | 106 |
$Email->subject('[PICT CODE]問い合わせ');
|
| 129 | 107 |
$Email->send(); |
| 130 |
|
|
| 131 |
// return |
|
| 132 |
// $this->redirect(array('action' => 'confirm'));
|
|
| 133 |
// $this->Session->setFlash( '仮登録成功。メール送信しました。'); |
|
| 134 |
// } else {
|
|
| 135 |
// // バリデーションエラーメッセージを渡す |
|
| 136 |
// $this->Session->setFlash( '入力エラー'); |
|
| 137 |
// } |
|
| 138 | 108 |
} |
| 139 | 109 |
|
| 140 | 110 |
} |
他の形式にエクスポート: Unified diff