Questions tagged [login]

Denotes questions related to login (frontend, backend and api).

Filter by
Sorted by
Tagged with
0 votes
1 answer
1k views

Magento 2: How to set "Maximum Login Failures to Lockout Account" different Role wise?

We have this https://docs.magento.com/user-guide/stores/security-admin.html In the 'Maximum Login Failures to Lockout Account' field, enter the number of times a user can try to log in to the Admin ...
-1 votes
1 answer
963 views

Login Button Not Working

I'm not sure what I did here, but I've killed my Login button when I reworked the login.phtml file. Here is the original code, which works, followed by the reworked code, which everything works on ...
0 votes
3 answers
1k views

How to show customer first name and last name after logged in Magento2.2.5?

I want to show customer first name and last name after logged in Magento2.2.5? As default magento fetches the first name and last name after logged in. In my case, I have removed magento default ...
13 votes
2 answers
3k views

Frontend form key is being overwritten

I am currently having issues with frontend forms where the form keys are somehow being overwritten and displaying incorrect form keys. I am currently debugging this issue on the customer login form. ...
4 votes
2 answers
2k views

Magento2 : Logged-in user has to re-login before checkout

Login in Add product to cart In top bar there is text "Welcome Michael Surname", but there is still option to sign-in and sign-up next to it. Go to cart > checkout Login prompt is displayed minicart ...
1 vote
2 answers
2k views

Login into Magento 2 site from external site

I have a site outside Magento's domain and I should allow Magento customer to login into Magento Store from this external site. Being completely new to Magento , I don't know how to implement this ...
2 votes
3 answers
2k views

Can't login to Magento 2 Admin.... Constantly asking for CAPTCHA

Having issues attempting to login to the back end of my M2 store. My login is correct, but when I attempt to login, I get an incorrect CAPTCHA message (even though there was no CAPTCHA on the initial ...
0 votes
1 answer
2k views

Magento2 Restrict Store view to a customer group

I need to restrict 1 storeview to a customer group and require login. Any suggestions?
4 votes
3 answers
2k views

Weird behavior after login

I'm using Magento 2.0.2, I have this series of errors: In the Sign in page when I type in a wrong password I get redirected to the same page BUT I didn't see the expected "Invalid login" error ...
0 votes
1 answer
2k views

Magento 2 customer login from external

I've spend a lot of time to find simple solution for this problem: I can access to magento site from my mobile app using REST I have all customer data (email, pass, rest token, id), from APP I can ...
0 votes
1 answer
4k views

Magento 2.3.5 - Customer login frontend does not work

For some reason our customer login form on the frontend does not work anymore. We still can login into the backend without any problems. I check the log files, but there are not error's displayed. ...
0 votes
1 answer
1k views

Redirect to Referrer URL after Login with Facebook/Google not working

Magento has a feature to redirect to the referrer page after a customer logs in. I have done this using the following code: $referer_url = $this->_redirect->getRefererUrl(); $...
1 vote
1 answer
1k views

Magento 2: Not Able to Login As A Customer

When I'm trying to do is Login As Customer, it gives the below error: a:4:{i:0;s:84:"Invalid method Magento\Framework\Session\Generic\Interceptor::isLoggedIn(Array ( ) )";i:1;s:11155:"#0 D:\wamp\www\...
3 votes
2 answers
2k views

Disable "add to cart" for Guest User

How can I Disable the "add to cart" when user is not logged in.
0 votes
1 answer
2k views

Validate Customer credentials in Magento 2

I'm trying to make a login of a user externally in PHP. Need to know which class should be used in Magento 2 to validate by Email & password and once validated, open the session. I'm dealing ...
1 vote
1 answer
2k views

x-magento-init not working in magento 2

I have Need to run some script after logged in admin user in magento 2. But, Its not calling for me. What i did: I have created js file this location. app/code/Vendor/Module/view/adminhtml/web/js/...
0 votes
4 answers
1k views

Magento 1.9 customer can not login after SSL installation

I am using magento 1.9 version for my site. I have installed SSL coupe of days back after that customer are not able to to login to my website. I followed this solutions Can't log into Secure (...
0 votes
1 answer
2k views

Magento 2 login popup

I have a client login popup on my page with the form action="<?= $block->escapeUrl($block->getPostActionUrl()) ?>" How can I change this so the form will not redirect to the account ...
0 votes
4 answers
5k views

file_get_contents(): SSL operation failed with code 1. OpenSSL Error - Login Error

After submitting the email and password getting the below error. Kindly help me with this. As per the error login below is the error Warning: file_get_contents(): SSL operation failed with code 1. ...
0 votes
1 answer
2k views

Magento 2 customer CAPTCHA Login Not Showing Up

I have added all possible captcha forms in Stores->Configuration->Customers->Customer Configuration->CAPTCHA see screen shoot bellow: Clear cache,flush yet the login page doesn't show it. ...
5 votes
3 answers
2k views

Magento 2.1.7 customer login issue

when I try to log in as a customer to shop I got notice error: "An unspecified error occurred. Please contact us for assistance." When I register as a new customer to shop it seems to work ok - ...
3 votes
3 answers
2k views

Magento 2: move mini-login dropdown to home page (header)

There is a mini login form on the checkout page. How can I move it to the header so it displays on every page?
2 votes
2 answers
2k views

Captcha not showing on frontend login page

Captcha not showing on frontend login page. It works fine on register and forgot password section. I am using default template captcha module in rwd template. Following all the necessary changes. ...
1 vote
2 answers
2k views

How to Set Meta description login page

I was woundering if any could help me find a way to set the Meta description for the customer/account/login page? Cant find an xml file where I can change it and not sure how to do it in the login....
1 vote
1 answer
929 views

After updating to version 2.4.4, when I enter the admin panel, I get an error: "An error has happened during application run."

When I try to login to the admin panel, I get the following error: 'An error has happened during application run. See exception log for details.' After cleaning the cookies, the error disappears and ...
0 votes
1 answer
59 views

Magento 2.4 Admin Custom Controller Check If User Logged In and Redirect to Login If Not

In an Admin Controller Class, How do I check if the admin user is logged in, then redirect to the login page if not logged in, then return to the previous controller after login? A cut down version of ...
1 vote
1 answer
1k views

How to change message position in magento 2

I want to show a message like error or success in below Login Button instead of page top in login page. How to change message position in below Login Button in Magento 2?
5 votes
3 answers
8k views

Magento2 admin account disabled error

How to enable admin account. I get account disabled. I tried to : php bin/magento admin:user:unlock admin (admin - username) UPDATE `admin_user` SET `password` = MD5('mypassword') WHERE `username` =...
0 votes
2 answers
299 views

Login page did not give error massage if user give wrong details in magento 2 using with hyva theme

I am using Magento 2 with a hyva Theme when I go to the login page and write the wrong credentials it will not give an error Massage like Please provide correct credentials in this page /customer/...
0 votes
1 answer
48 views

how to create a customer by using two fields passwords and confirm password in email section on magento2 checkout?

I have two fields created at the email section in checkout in magento2. I want to create a customer on order place. I am currently using "sales_order_payment_save_before" to get field data ...
0 votes
1 answer
2k views

display 'welcome " customer_name"' at the top of the magento site

when customer login to site, it should display "welcome customer" at top of the site. assume customer will login to site. after customer login, in top of the site there should be a some message to ...
1 vote
1 answer
139 views

Call to a member function isGlobalScopeEnabled() on null

I have just updated my magento version from 2.4.0 to 2.4.6 and i am getting this error on frontend.Please suggest any solution. Also i have custom theme but i am not getting why this error is occuring....
0 votes
1 answer
288 views

Magento 2 - Redirect customers to correct store on login using the same url

My site requires customers to login via third party to a multistore on magento 2 using the same url (no store code in url). I have 3 websites with corresponding stores, views and customer groups. ...
2 votes
0 answers
169 views

magento 2.3.3 customer loggin issue quote table is_active?

Magento 2.3.3 customer login issue quote table is_active? When there is more than 1 data in the quote table with is_active = 1 then the user is facing login issues. So I have to change is_active to 0 ...
0 votes
2 answers
2k views

how to make noindex nofollow for login page

I want to make noindex nofollow for login page, i tried <customer_account_login translate="label"> <label>Customer Account Login Form</label> <!-- Mage_Customer ...
2 votes
2 answers
3k views

Magento 2.2: (API) set UserContext user type to customer during token creation

I've been struggling with the following scenario: i have a custom API endpoint to process the guest to customer login. This endpoint basically does the same thing as /integration/customer/token with ...
3 votes
3 answers
4k views

How to perform auto-login in Magento2 admin?

For M1 i had a php file which took care of logging into admin, now i need the same for M2 but i can't get it to work. This is my external file: use Magento\Framework\App\Bootstrap; require __DIR__ . ...
4 votes
8 answers
4k views

“Type Error occurred when creating object: Magento\\Eav\\Model\\Entity\\Attribute\\Source\\Config”

I have migrated from ver 1.9 to 2.3
4 votes
7 answers
22k views

How to change default logo of magento admin panel

How to change default logo of magento admin panel
1 vote
1 answer
402 views

how to solve 401 redirect on REST API on Custom tab between shipping and Payment option

I have created some steps between shipping and Payment form and add some field between then and applied ajax on that but i have facing an issue for not logged in user it will gave an error of 401 and ...
1 vote
2 answers
6k views

Magento 2 : How to add login link on home page

I want to add the login page geturl link when I click on the login link. What is the role of customer_account_login.xml in this and how to load the login page after clicking on the link?
0 votes
0 answers
239 views

Login as a Customer via admin not working in magento 2

I am unable to login to a customer account from magento backend as a admin, eventhough i clicked Login as a customer in popup, but it just reloads the page Please help It redirects frontend , ...
0 votes
1 answer
230 views

How to Create Custom Social Login In Magento2

I want to create social login in magento2.I want to add google and facebook as social login.Could anyone explain me how to add this functionality in magent2 without using any extension. I dont want to ...
1 vote
0 answers
54 views

Error while login customer into the authentication-popup frontend

Actually, I have installed the phone number login extension into Magento 2.4 downloaded it from GitHub, and added some new functionality as per the requirement after doing all functionality I faced an ...
3 votes
4 answers
4k views

Magento 2 customer logged in checking - in \Magento\Customer\Model\Session method isLoggedIn() always returns false

I am instantiating the customer session helper (\Magento\Customer\Model\Session $customerSession) correctly, but this function always returns false, even though the customer is logged in. What am I ...
0 votes
1 answer
2k views

Invalid form key. Please refresh the page on Front End

When I try to login as user I have the problem of invalid form key on frontend. Once the page is refreshed, the login works. We have 4 sites main.it subdomain.main.it second.it subdomain.second.it ...
80 votes
22 answers
137k views

How to check if customer is logged in or not?

How to find if a customer is logged in or not in Magento 2. If the customer is logged in then how to get customer data from a session?
1 vote
2 answers
2k views

Wishlist redirect to popup login

I have a popup Login/register. But when i click "add to wishlist" when not logged in it redirects me to a standard login page. I would like to change it to the login popup. This is the header login/...
3 votes
4 answers
9k views

Magento 2 admin login redirects to login page issue

I cant seem to login into my magento 2 backend. When I enter the correct credentials it just redirects me to the login page with no error. Debug, system and exception log are clean. Cache is cleaned ...
0 votes
0 answers
76 views

Fresh install Magento and can't login

After the installation and I get to the main page of Magento the demo shows. The next thing I do is use the credentials I've provided during the installation. It will return "The account sign-in ...

1
2 3 4 5
17