リビジョン 787484d2 app/Controller/UsersController.php
app/Controller/UsersController.php | ||
---|---|---|
139 | 139 |
}else{ |
140 | 140 |
// 本登録に無効なURL |
141 | 141 |
$this->Session->setFlash( 'Invalid activation URL'); |
142 |
return $this->redirect(array('controller' => 'top', 'action' => 'index'));
|
|
142 |
return $this->redirect(array('controller' => 'top', 'action' => 'error'));
|
|
143 | 143 |
} |
144 | 144 |
} |
145 | 145 |
|
... | ... | |
219 | 219 |
} |
220 | 220 |
if ($this->request->is('post')) { |
221 | 221 |
if ($this->Auth->login()) { |
222 |
// $options = array('conditions' => array('User.email' => $this->Auth->user('User.email'),'User.status' => 1)); |
|
223 |
// $this->request->data = $this->User->find('first', $options); |
|
224 |
// $this->set('user', $this->request->data); |
|
225 | 222 |
if($this->Auth->user('status') == 1){ |
226 | 223 |
$this->redirect('/Users/login_top'); |
227 | 224 |
}else{ |
他の形式にエクスポート: Unified diff