Example #1
0
 public function copyAvatarFromSso(SsoModel $sso)
 {
     if ($sso->hasNotEmpty('avatar')) {
         $this->set('avatar', $sso->get('avatar'));
         $this->save();
     }
 }