1
0
mirror of https://github.com/typemill/typemill.git synced 2025-07-31 11:20:15 +02:00

v2.1.2 fix error initial setup not saved as array in yaml

This commit is contained in:
trendschau
2024-01-30 20:34:18 +01:00
parent cc42bac830
commit 66cf087957
3 changed files with 16 additions and 20 deletions

20
composer.lock generated
View File

@@ -1143,16 +1143,16 @@
},
{
"name": "slim/csrf",
"version": "1.3.0",
"version": "1.4.0",
"source": {
"type": "git",
"url": "https://github.com/slimphp/Slim-Csrf.git",
"reference": "ebaaf295fd6d7224078d8ae3bba45329b31798c7"
"reference": "f66be9740283ed4f432535aff3623540e178013a"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/slimphp/Slim-Csrf/zipball/ebaaf295fd6d7224078d8ae3bba45329b31798c7",
"reference": "ebaaf295fd6d7224078d8ae3bba45329b31798c7",
"url": "https://api.github.com/repos/slimphp/Slim-Csrf/zipball/f66be9740283ed4f432535aff3623540e178013a",
"reference": "f66be9740283ed4f432535aff3623540e178013a",
"shasum": ""
},
"require": {
@@ -1163,10 +1163,10 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"phpspec/prophecy": "^1.15",
"phpspec/prophecy-phpunit": "^2.0",
"phpunit/phpunit": "^9.5",
"squizlabs/php_codesniffer": "^3.7"
"phpspec/prophecy": "^1.18",
"phpspec/prophecy-phpunit": "^2.1",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.8"
},
"type": "library",
"autoload": {
@@ -1195,9 +1195,9 @@
],
"support": {
"issues": "https://github.com/slimphp/Slim-Csrf/issues",
"source": "https://github.com/slimphp/Slim-Csrf/tree/1.3.0"
"source": "https://github.com/slimphp/Slim-Csrf/tree/1.4.0"
},
"time": "2022-11-05T19:27:53+00:00"
"time": "2024-01-22T09:08:27+00:00"
},
{
"name": "slim/flash",

View File

@@ -87,12 +87,6 @@ class ControllerWebSetup extends Controller
if($username)
{
usleep(30000);
$user->setUser($username);
$user->login();
# create initial settings file
$settingsModel = new Settings();
$settingsModel->createSettings([
@@ -101,9 +95,13 @@ class ControllerWebSetup extends Controller
'mailfromname' => $params['username']
]);
$user->setUser($username);
$user->login();
$urlinfo = $this->c->get('urlinfo');
$route = $urlinfo['baseurl'] . '/tm/system';
usleep(30000);
$this->c->get('flash')->addMessage('error', Translations::translate('Account created. Please login with your username and password now.'));

View File

@@ -235,9 +235,7 @@ class Settings
$defaults = array_merge($defaults, $defaultSettings);
}
$initialSettings = $this->storage->updateYaml('settingsFolder', '', 'settings.yaml', [
$defaults
]);
$initialSettings = $this->storage->updateYaml('settingsFolder', '', 'settings.yaml', $defaults);
if($initialSettings)
{