Skip to content

Commit

Permalink
5.1.0にアップデート時に、allow_simple_password を true に設定
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Jul 15, 2024
1 parent fb669bf commit cfdef70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/baser-core/config/update/5.1.0/updater.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@
/**
* 5.1.0 アップデーター
*/

use BaserCore\Service\SiteConfigsServiceInterface;
use BaserCore\Utility\BcContainer;
use BaserCore\Utility\BcUpdateLog;

$updateDir = __DIR__;
Expand All @@ -21,3 +24,7 @@
} else {
BcUpdateLog::set(__d('baser_core', ROOT . DS . 'src' . DS . 'View' . DS . 'AjaxView.php に書き込み権限がありません。' . $updateDir . DS . 'src' . DS . 'View' . DS . 'AjaxView.php をコピーして手動で上書きしてください。'));
}

/** @var \BaserCore\Service\SiteConfigsService $siteConfigsService */
$siteConfigsService = BcContainer::get()->get(SiteConfigsServiceInterface::class);
$siteConfigsService->setValue('allow_simple_password', true);

0 comments on commit cfdef70

Please sign in to comment.