예제 #1
0
파일: User.php 프로젝트: wordnews/wei_shop
 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;
 }