Skip to content

Commit

Permalink
skip more attribute when saving user profile
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick committed Oct 6, 2015
1 parent d7272d4 commit 2d348e3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions models/ProfileForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,7 @@ public function save($requireVerifiedEmail = false)
return false;
}
$attributes = $this->getAttributes();
unset($attributes['owner']);
unset($attributes['webUser']);
unset($attributes['owner'], $attributes['webUser'], $attributes['picture'], $attributes['removePicture'], $attributes['password']);
$identity->setIdentityAttributes($attributes);
if ($identity->saveIdentity($requireVerifiedEmail)) {
if ((!($this->picture instanceof \yii\web\UploadedFile) || $identity->savePicture($this->picture)) && (!$this->removePicture || $identity->removePicture())) {
Expand Down

0 comments on commit 2d348e3

Please sign in to comment.