Magento 2 Admin Login
The Admin has access to some crucial information like a store, order, and customer data; thus, Magento Commerce Admin is protected by multiple layers of security measures. It helps in preventing unauthorized access to data. The users who sign in for the first time have to use their username and passport and have to set up two-factor authentication. Some stores will also be asked to resolve CAPTCHA; it depends on your store configuration.
If you have multiple Admin users, you can determine permissions accessible to specific users and limit the number of login attempts. By default, login attempts are set at six times; after that, your account will be locked if you enter incorrect credentials. In this case, the user will have to wait for a few minutes to log in again. Admins can also reset Locked accounts.
You’ll be given an opportunity to allow admin data usage when you log in for the first time. For more information, you can visit Store Admin
Let’s see how you can set up Admin Log in
Step 1: Set up two-factor authentication(2FA)
You must have two-factor authentication set up before you get started with the Admin sign-in. Magento 2 Commerce supports Google Authenticator by default.
But you can use other 2FA solutions too. If you’re in doubt about which one will support your store, you can Ask your Commerce system administrator. Once you choose the right one for your store, you can complete the 2FA setup.
Step 2: Sign in to the Admin
- Enter the Custom Admin URL. You’ll have to remember the admin URL you specified during the Commerce installation process.
It will look something like this
https://www.yourdomain.com/your-custom-admin-domain.
In most examples, admin is used as a base URL, but it is recommended to use a URL that is unique and hard to guess for security reasons.
For easy access, save a shortcut on your PC or bookmark the page in a browser.
- Enter your Admin Username and Password.
- (Optional) If your store is configured to resolve a CAPTCHA, simply follow the instructions to resolve it.
- Click Sign in.
When you sign in for the first time, you will receive an email with a configuration instructions link.
Step 3: Complete the 2FA configuration
If you’re using Google Authenticator, you can follow the steps mentioned below. The steps might differ depending on the authenticator you use.
- Once you hit the sign-in button, you’ll see the QR code on the screen; simply pair Google Authenticator by using one of the following methods
- Use your smartphone to Capture QR Code
Launch the Google Authenticator app on your smartphone. In the upper-right corner, tap the plus button (+). Now to take a picture of the QR code, tap the Scan Barcode button at the bottom of the screen.
- Capture QR Code from browser
Install the Google Authenticator extension, click on the icon, and capture the page.
- Manually enter QR code
Launch the Google Authenticator app on any of your devices. In the upper-right corner, tap the plus button (+), then choose Manual Entry. Copy the string of text below the QR code. Under the account section, enter the email address associated with your admin account and paste the QR code string in the Key field.
- Enter the code generated by Google Authenticator into the Authenticator Code field and click confirm.
- You’ll be signed in to the Admin.
Configure the admin user name to be case sensitive
- Navigate to the Admin sidebar and go to > Settings > Configuration.
- Expand advanced and choose Admin In the left panel
- Expand the Security section.
- Select “YES” for Case Sensitive field.
- Click Save Config.
Sign out of the Admin
- Click the Account icon in the upper-right corner.
- Click Sign Out.
You will see a message showing signed out on a sign-in page. Now, what if you forgot your password? Simply follow the steps below to reset your password.
How to Reset your password?
- Enter the Email Address associated with your Admin account.
- Click Retrieve Password
Magento 2 Commerce will verify your email, and if the email is associated with an account, you’ll receive an email to reset your password. Remember that you can not use the last four passwords.
Allow multiple Admin logins
You can manage orders, products, customers, and payment functionality with the Admin. By default, the configuration doesn’t allow multiple logins for Admin users for security reasons. You can change this setting following the step below.
- Navigate to the Admin sidebar and go to Stores > Settings > Configuration.
- Expand advanced and choose Admin In the left panel
- Expand the Security section.
- Select “YES” for Admin Account Sharing
- Click Save Config.
That’s it for Admin Login.