Ejemplo n.º 1
0
 public function editProfile()
 {
     if ($this->validate()) {
         $User = new \common\models\User();
         if (!empty($this->newpassword)) {
             $this->password_hash = $User->setPasswordShop($this->newpassword);
         }
         return $this->save(false);
     }
     return false;
 }