リビジョン 0a142321 app/Model/User.php
app/Model/User.php | ||
---|---|---|
182 | 182 |
public function DuplicateEmailCheck(){ |
183 | 183 |
$query = array('conditions' => array('User.email' => $this->data['User']['email'],'User.status' => 1)); |
184 | 184 |
$num = $this->find('count',$query); |
185 |
//$this->log($recodes); |
|
186 |
//var_dump($num); |
|
187 |
//exit; |
|
188 | 185 |
if($num > 0){ |
189 | 186 |
return false; //登録済み |
190 | 187 |
} else{ |
... | ... | |
240 | 237 |
public function NotExistEmailCheck(){ |
241 | 238 |
$query = array('conditions' => array('User.email' => $this->data['User']['email'],'User.status' => 1)); |
242 | 239 |
$num = $this->find('count',$query); |
243 |
//$this->log($recodes); |
|
244 |
//var_dump($num); |
|
245 |
//exit; |
|
246 | 240 |
if($num > 0){ |
247 | 241 |
return true; //未登録 |
248 | 242 |
} else{ |
他の形式にエクスポート: Unified diff