1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-23 05:16:03 +02:00

Flextype Admin Panel: UUID implementation #197 #186

This commit is contained in:
Awilum
2019-08-17 23:12:41 +03:00
parent 3dcb9b6fc0
commit 927415b155
2 changed files with 2 additions and 2 deletions

View File

@@ -200,7 +200,7 @@ class EntriesController extends Controller
$data_from_post['fieldset'] = $data['fieldset'];
$data_from_post['published_at'] = time();
$data_from_post['created_at'] = time();
$data_from_post['uuid'] = Uuid::uuid4();
$data_from_post['uuid'] = Uuid::uuid4()->toString();
// Predefine data values based on selected fieldset
foreach ($fieldset['sections'] as $key => $section) {

View File

@@ -131,7 +131,7 @@ class UsersController extends Controller
'email' => $data['email'],
'role' => 'admin',
'state' => 'enabled',
'uuid' => Uuid::uuid4(),
'uuid' => Uuid::uuid4()->toString(),
])
)) {
return $response->withRedirect($this->router->pathFor('admin.users.login'));