Magento 2 admin sesssion timeout settings

The backend session in Magento is with short lifetime only 900 seconds which is 15 minutes. To extended it, login to admin panel and navigate to:
Stores->Settings->Configuration->Advanced->Admin->Security->Admin Session Lifetime (seconds)
change it from 900 to 3600 which is 1 hour.
admin session lifetime

Posted in Magento 2 at June 22nd, 2016. No Comments.

Create admin user using CLI

Hello, today I will show you how to create administrator user using cli:
Open terminal and navigate to magento root folder. Use this command to create user for magento admin panel:

php bin/magento admin:user:create --admin-user="administrator" --admin-password="password123@" --admin-email="" --admin-firstname="Admin" --admin-lastname="Admin"

Press enter and login with new user.
If the admin user exist the command will change current credentials with the new one, that are provided in the console command.

Posted in Magento 2 at May 19th, 2016. No Comments.