Extended login time up to 3 months

This commit is contained in:
Čarodej
2022-06-29 11:42:05 +02:00
parent b6c603a97b
commit 1ba96f0c43
4 changed files with 19 additions and 2 deletions

View File

@@ -1,4 +1,8 @@
## Version 2.2.0.12 ## Version 2.2.0.13
#### Release date: 29. Jun 2022
- Extended login time up to 3 months
- ## Version 2.2.0.12
#### Release date: 28. Jun 2022 #### Release date: 28. Jun 2022
- Fixed paystack transaction issue - Fixed paystack transaction issue

View File

@@ -1,7 +1,7 @@
<?php <?php
return [ return [
'version' => '2.2.0.12', 'version' => '2.2.0.13',
'is_demo' => env('APP_DEMO', false), 'is_demo' => env('APP_DEMO', false),
@@ -75,5 +75,6 @@ return [
'2_1_1', '2_1_1',
'2_1_2', '2_1_2',
'2_2_0', '2_2_0',
'2_2_0_13',
], ],
]; ];

View File

@@ -24,6 +24,9 @@ class AppServiceProvider extends ServiceProvider
{ {
Schema::defaultStringLength(191); Schema::defaultStringLength(191);
// TODO: temporary
config()->set('session.lifetime', 15120);
try { try {
$app_locale = get_settings('language') ?? 'en'; $app_locale = get_settings('language') ?? 'en';
} catch (\PDOException $e) { } catch (\PDOException $e) {

View File

@@ -22,6 +22,15 @@ class UpgradingVersionsController
) { ) {
} }
public function upgrade_to_2_2_0_13(): void
{
setEnvironmentValue([
'SESSION_LIFETIME' => 15120,
]);
Artisan::call('config:clear');
}
public function upgrade_to_2_2_0(): void public function upgrade_to_2_2_0(): void
{ {
setEnvironmentValue([ setEnvironmentValue([