Skip to content

Commit 2d348e3

Browse files
committed
skip more attribute when saving user profile
1 parent d7272d4 commit 2d348e3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

models/ProfileForm.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ public function save($requireVerifiedEmail = false)
199199
return false;
200200
}
201201
$attributes = $this->getAttributes();
202-
unset($attributes['owner']);
203-
unset($attributes['webUser']);
202+
unset($attributes['owner'], $attributes['webUser'], $attributes['picture'], $attributes['removePicture'], $attributes['password']);
204203
$identity->setIdentityAttributes($attributes);
205204
if ($identity->saveIdentity($requireVerifiedEmail)) {
206205
if ((!($this->picture instanceof \yii\web\UploadedFile) || $identity->savePicture($this->picture)) && (!$this->removePicture || $identity->removePicture())) {

0 commit comments

Comments
 (0)