リビジョン ceb21f43 app/Controller/UsersController.php
| app/Controller/UsersController.php | ||
|---|---|---|
| 203 | 203 |
} |
| 204 | 204 |
if ($this->request->is('post')) {
|
| 205 | 205 |
if ($this->Auth->login()) {
|
| 206 |
$this->redirect($this->Auth->redirectUrl());
|
|
| 206 |
$this->redirect('/Users/login_top');
|
|
| 207 | 207 |
} else {
|
| 208 |
$this->Flash->error(__('login error'));
|
|
| 208 |
$this->Flash->error(__('error'));
|
|
| 209 |
// $this->Flash->error(__('<section class="caution"><p>ニックネームか パスワードに<br>まちがいが あるよ!</p></section>'));
|
|
| 209 | 210 |
} |
| 210 | 211 |
} |
| 211 | 212 |
} |
| 212 | 213 |
/** |
| 213 |
* logout method |
|
| 214 |
* logout methods
|
|
| 214 | 215 |
* |
| 215 | 216 |
* @throws NotFoundException |
| 216 | 217 |
* @param string $id |
| ... | ... | |
| 221 | 222 |
} |
| 222 | 223 |
|
| 223 | 224 |
|
| 225 |
/** |
|
| 226 |
* login_top method |
|
| 227 |
* |
|
| 228 |
*/ |
|
| 229 |
public function login_top() {
|
|
| 230 |
} |
|
| 231 |
|
|
| 232 |
|
|
| 224 | 233 |
|
| 225 | 234 |
} |
| 226 | 235 |
|
他の形式にエクスポート: Unified diff