Skip to content

Commit 07966fe

Browse files
authored
Merge pull request #7 from Sekiphp/feature/admin-session-lifetime
2 parents fa1eb74 + 05d0a36 commit 07966fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bin/magento-install

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,12 @@ ${DOCKER_BIN_DIRECTORY}/magento deploy:mode:set developer
7171
# Two factor authentication is enabled by default since version 2.4.0
7272
${DOCKER_BIN_DIRECTORY}/magento module:disable Magento_TwoFactorAuth
7373

74+
# Set session admin lifetime for one year
75+
${DOCKER_BIN_DIRECTORY}/magento config:set admin/security/session_lifetime 31535999
76+
7477
# Set SMTP host
7578
${DOCKER_BIN_DIRECTORY}/magento config:set system/smtp/host mailhog
79+
7680
# Set SMTP port
7781
${DOCKER_BIN_DIRECTORY}/magento config:set system/smtp/port 1025
7882
echo "Mailhog has been configured."

0 commit comments

Comments
 (0)