mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-27 16:14:39 -06:00
fixed profile img
This commit is contained in:
parent
200b806334
commit
fb6bd28576
@ -19,6 +19,12 @@ class UserFormHandler
|
||||
|
||||
$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());
|
||||
if ($user->email != $data['email']) {
|
||||
$user->notify(new UserUpdateEmailMail());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user