リビジョン 93b01961
| app/Controller/UsersController.php | ||
|---|---|---|
| 119 | 119 |
$this->User->id = $user_id; |
| 120 | 120 |
if ($this->User->exists() && $in_hash == $this->User->getActivationHash()) {
|
| 121 | 121 |
// 本登録に有効なURL |
| 122 |
// statusフィールドを0に更新
|
|
| 123 |
$this->User->saveField( 'status', 0);
|
|
| 122 |
// statusフィールドを1に更新
|
|
| 123 |
$this->User->saveField( 'status', 1);
|
|
| 124 | 124 |
$this->Session->setFlash( 'Your account has been activated.'); |
| 125 | 125 |
}else{
|
| 126 | 126 |
// 本登録に無効なURL |
| ... | ... | |
| 206 | 206 |
if ($this->Auth->login()) {
|
| 207 | 207 |
$this->redirect('/Users/login_top');
|
| 208 | 208 |
} else {
|
| 209 |
$this->Flash->error(__('error'));
|
|
| 210 |
// $this->Flash->error(__('<section class="caution"><p>ニックネームか パスワードに<br>まちがいが あるよ!</p></section>'));
|
|
| 209 |
$this->Flash->loginerror('ニックネームか パスワードにまちがいが あるよ!', array(
|
|
| 210 |
'key' => 'positive', |
|
| 211 |
)); |
|
| 211 | 212 |
} |
| 212 | 213 |
} |
| 213 | 214 |
} |
| app/View/Elements/Flash/loginerror.ctp | ||
|---|---|---|
| 1 |
<section class="caution"> |
|
| 2 |
<p> |
|
| 3 |
<?php echo h($message) ?> |
|
| 4 |
<p> |
|
| 5 |
</section> |
|
他の形式にエクスポート: Unified diff