Skip to content
Snippets Groups Projects
Verified Commit a81344a8 authored by Damien's avatar Damien
Browse files

FEAT #10599 TIME 0:20 Default picture when create user

parent 2209aa46
No related branches found
No related tags found
No related merge requests found
...@@ -105,7 +105,10 @@ class UserController ...@@ -105,7 +105,10 @@ class UserController
if (empty($body['mode']) || !in_array($body['mode'], $logingModes)) { if (empty($body['mode']) || !in_array($body['mode'], $logingModes)) {
$body['mode'] = 'standard'; $body['mode'] = 'standard';
} }
$body['picture'] = empty($body['picture']) ? null : $body['picture']; if (empty($body['picture'])) {
$body['picture'] = base64_encode(file_get_contents('src/frontend/assets/user_picture.png'));
$body['picture'] = 'data:image/png;base64,' . $body['picture'];
}
$id = UserModel::create($body); $id = UserModel::create($body);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment