This commit is contained in:
Martin Müller 2014-05-11 15:29:18 +02:00
parent 3cec5cb867
commit 889e67b4d9
1 changed files with 2 additions and 3 deletions

View File

@ -95,10 +95,9 @@ class User extends AppModel {
$dataSource = $this->getDataSource(); $dataSource = $this->getDataSource();
$dataSource->begin(); $dataSource->begin();
$this->id = $data['User']['id']; $this->id = $data['User']['id'];
$result = $this->saveField('password',$password);
if($result) if($result)
$result = $this->saveField('code',''); $result = $this->saveField('code','');
if($result)
$result = $this->saveField('password',$password);
if($result) { if($result) {
$dataSource->commit(); $dataSource->commit();