リビジョン 8b8631af app/Controller/UsersController.php
app/Controller/UsersController.php | ||
---|---|---|
10 | 10 |
|
11 | 11 |
public $layout = 'procedure'; |
12 | 12 |
public $name = 'users'; |
13 |
public $uses = array('User'); |
|
13 | 14 |
|
14 | 15 |
public function beforeFilter() { |
15 | 16 |
parent::beforeFilter(); |
16 |
$this->Auth->allow('register','activate','confirm','sent'); |
|
17 |
$this->Auth->allow('register','activate','confirm','sent','login');
|
|
17 | 18 |
} |
18 | 19 |
|
19 | 20 |
/** |
... | ... | |
88 | 89 |
$this->set('register',$this->Session->read('register')); |
89 | 90 |
$name = $this->Session->read('register.User.login_id'); |
90 | 91 |
$mail = $this->Session->read('register.User.email'); |
91 |
// ユーザアクティベート(本登録)用URLの作成 |
|
92 |
// ユーザアクティベート(本登録)用URLの作成 DSはスラッシュの意味
|
|
92 | 93 |
$url = |
93 | 94 |
DS . 'users' . // コントローラ |
94 | 95 |
DS . 'activate' . // アクション |
... | ... | |
102 | 103 |
$Email->emailFormat('text'); |
103 | 104 |
$Email->template('user_register'); |
104 | 105 |
$Email->viewVars(array('name'=>$name,'comment'=>$comment)); |
105 |
$Email->from($mail);
|
|
106 |
$Email->to('hasegawa@i-hearts.jp');
|
|
106 |
$Email->from('hasegawa@i-hearts.jp');
|
|
107 |
$Email->to($mail);
|
|
107 | 108 |
$Email->subject('[PICT CODE]問い合わせ'); |
108 | 109 |
$Email->send(); |
109 | 110 |
} |
他の形式にエクスポート: Unified diff