password
This commit is contained in:
parent
3cec5cb867
commit
889e67b4d9
|
@ -95,10 +95,9 @@ class User extends AppModel {
|
|||
$dataSource = $this->getDataSource();
|
||||
$dataSource->begin();
|
||||
$this->id = $data['User']['id'];
|
||||
$result = $this->saveField('password',$password);
|
||||
if($result)
|
||||
$result = $this->saveField('code','');
|
||||
if($result)
|
||||
$result = $this->saveField('password',$password);
|
||||
|
||||
if($result) {
|
||||
$dataSource->commit();
|
||||
|
|
Loading…
Reference in New Issue