mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-28 00:24:41 -06:00
fixed profile img
This commit is contained in:
parent
200b806334
commit
fb6bd28576
@ -19,6 +19,12 @@ class UserFormHandler
|
|||||||
|
|
||||||
$data = $builder->getPostData();
|
$data = $builder->getPostData();
|
||||||
|
|
||||||
|
if ($builder->getPostValue('file') != null) {
|
||||||
|
$data['file_id'] = $builder->getPostValue('file');
|
||||||
|
} elseif (empty($builder->getPostValue('file'))) {
|
||||||
|
$data['file_id'] = null;
|
||||||
|
}
|
||||||
|
|
||||||
$user = $userModel->find(\auth()->id());
|
$user = $userModel->find(\auth()->id());
|
||||||
if ($user->email != $data['email']) {
|
if ($user->email != $data['email']) {
|
||||||
$user->notify(new UserUpdateEmailMail());
|
$user->notify(new UserUpdateEmailMail());
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user