Questions tagged [login]

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

Filter by
Sorted by
Tagged with
61
votes
17answers
60k views

How to check if customer is logged in or not in magento 2?

How to find if customer is logged in or not in Magento 2. If customer is logged in then how to get customer data from session?
97
votes
16answers
183k views

Magento 1.9 Can’t login to admin panel!

I have installed Magento 1.9. It was working well for a week. Suddenly yesterday, when I tried to login to the Magento admin panel and I typed username and password, clicked Login button and nothing ...
41
votes
12answers
58k views

Customer Login Doesn't Work in 1.9

I just did a fresh installation of Magento 1.9.0.1 and I am seeing some very odd behavior with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
8
votes
3answers
7k views

Magento 2 - Redirect user to a specific page if not logged in

I need to redirect user to a landing page if not logged in. I find a similar work in this link. Is there a solution for Magento 2?
4
votes
3answers
2k views

Login with mobile number on magento-1.9 website

How to login with mobile number in magento-1.9.1.1 without extension? I created The file at app/etc/modules/New_Mage.xml <?xml version="1.0"?> <config> <modules> <...
6
votes
1answer
15k views

How to bind an action after customer login success using Magento?

I'm using Magento 1.4.1.1. After logout success, customer is rooted to "logout.phtml" first and "home page" later. Is there anyway I could make Magento run couple of "php" codes after "login" ...
3
votes
2answers
2k 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__ . ...
12
votes
2answers
4k views

Is it possible for customers to login with a customer number instead of a email address

I want to create a login page that uses a assigned customer number instead of their email address. The way my business is setup, on a separate eComms platform, they access their account with a ...
7
votes
2answers
12k views

Double frontend cookies causing intermittent login issues

The site runs Magento CE 1.7.0.2. Customers have been reporting issues with logging in. I've been able to replicate this myself on Safari only (do not know the exact steps to replicate yet though). ...
14
votes
2answers
4k views

Autologin on frontend from the backend

See the following scenario. I have some custom module that allows the frontend user to perform some actions on some custom entities. (details are not really important). The request is that an admin ...
8
votes
3answers
15k views

Magento 2 - Redirect customer to custom page after login

Which class I should override in order to redirect a customer to a specific page after login? I have tried to set Redirect Customer to Account Dashboard after Logging in in the store configuration ...
6
votes
2answers
6k views

Magento 2 - Change customer password programmatically

I have build a plugin on the authenticate() method in Magento\Customer\Model\AccountManagement with beforeAuthenticate(). It is working and I can change the firstname of something else of the ...
3
votes
2answers
7k views

Magento redirect from all pages if not logged in

So, I need to redirect user to some page(tt can be CMS or customer/account) if he did not logged. And on this page(CMS or customer/account) I will have a form to login/register. So, I made an observer ...
0
votes
2answers
8k views

Magento 2 : After login need to redirect on same page instead of customer Dashboard

After login redirect user on previous page from front-end. I am using the login pop-up and all default functionality. Also the Admin configuration Redirect Customer to Account is set as No. But it ...
9
votes
5answers
17k views

Redirect user after login

I wanted to redirect user to "Home" page instead of "My Account" page after login, and i was successful to achieve this making use of <customer_login> event. But I was also redirected to ...
4
votes
3answers
9k views

Magento 2: Get Customer data after login with observer

I need to detect in frontend section for my custom module if customer has just successfully logged in, and i need to run some function before it redirect to another page, is there any way to do this?
8
votes
1answer
10k views

Erratic cookie-related login problem

this will be a long one... I've got a bad case of erratic login failure, due to wrong cookie management. First of all, I'm managing a closed store (B2B) in which customers have to login before they ...
3
votes
2answers
4k views

Can't log into Secure (SSL) Magento site on front end in Chrome

I've been having a constant struggle with being able to log into the site www.dragondirectsales.com. It's a magento 1.9.1 site. The site has a subdomain, cas.dragondirectsales.com. Everything seemed ...
11
votes
4answers
5k views

Cookies not working with subdomains

We have a main site at example.com. Logging into example.com/admin works fine there. But on a testing site at test.example.com/admin I cannot log into the admin without first deleting all example.com ...
1
vote
1answer
344 views

Magento 2.3.0 - Can't login to admin

I can't login to admin panel on Magento 2.3.0 version. After I press Sign In button I have this message: "Invalid Form Key. Please refresh the page." and in the system.log file I have this: [2019-02-...
1
vote
1answer
2k views

Magento2: Add login form in checkout page

Please help, I'm still new in learning magento 2 and I want to ask how to add login form on checkout page ? I opened checkout_index_index.xml and onepage.phtml, it's very confused because it's very ...
8
votes
10answers
54k views

Error - Invalid Form Key

I meet a problem with magento 1.9.2.3, an error message appears when I connect with my custom admin form. I created a module and I duplicated the customer/account/login page for my users role. <?...
6
votes
9answers
8k views

Customers couldn't login from Safari In magento 1.9

customer login don't works with Safari, only if i activate incognito mode in Safari. After click on login, page reload itself without error massage. I have take: Clear Cookies in Safari Clear ...
12
votes
2answers
14k views

How can i get customer data from observer after successful login?

I have made a custom module in which I have an observer file. I need to display all information about the logged in user.
4
votes
6answers
12k views

Programmatically login a user

I'm trying to login a user by ID but having issues with them staying logged in. The user gets redirected to their account page but as soon as they click any link, they're not logged in. I am seeing a ...
4
votes
4answers
4k views

Magento generating aprox 20 session files per minute

I have a problem with a Magento installation. This installation is not live and as such has no traffic etc. I watched in cpanel's file manager and it appears to be generating 15-25 files per minute in ...
4
votes
5answers
14k views

magento 1.9 customer can not login

I am using magento 1.9 version site: http://hotwheelstoys.in/one/em0113-full-package/index.php/ but customer is not able to login to the site. I tried in all browsers by clearing history. Also I ...
4
votes
1answer
5k views

Call default Magento 2 authentication popup from a custom module

I would like to call the existing authentication modal popup built into Magento 2 from a custom module. It must already be in the body somewhere since it can readily be called by clicking the checkout ...
2
votes
1answer
3k views

I cannot login to my magento 2.0 admin panel

I have successfully installed magento 2.0 However I cannot see any default theme appled on the front end and also I am not able to login to my admin panel
2
votes
1answer
2k views

Magento 2, force login on product and catalog pages

I have found this module : https://github.com/bitExpert/magento2-force-login and this topic : Force login to access catalog and product pages but I still think there must be a simpler solution, to ...
2
votes
1answer
4k views

Magento 2 : Redirect From Homepage to Login if not Logged

I would like to redirect customer from homepage to login page, if they are not logged in. I have a module however this just shows a blank homepage instead of redirecting. Repo: https://github.com/...
8
votes
7answers
14k views

How can i check whether user is logged in or not in magento 2.0 [duplicate]

How can I check whether user is logged in or not in Magento 2.0 I using phtml file I want to check user logged in or not. <span class="selllink switcher top-links"> <span class="" data-...
6
votes
4answers
4k views

Magento 2 : override customer login.phtml file in custom module

I had developed "Hello world" extension in Magento 2. I want to override Customer login form of core files. What is correct way for overriding Customer login form file in Magento 2. I have coded ...
3
votes
4answers
2k views

Can't login with Safari on iPad - Magento 1.8

I received a customer report that they can't login to our ecommerce site from their iPad. I was able to recreate the issue with Safari, but Chrome on the iPad works fine. What I see in Safari is ...
2
votes
1answer
652 views

How to programmatically sign in to the administration area from a module?

I'm trying to create a module which logs in a retrieved user to the administration panel. (we're talking admins, not customers :) ) I found the following post on how to do this: How to perform auto-...
2
votes
3answers
6k views

Chrome and SSL: problem with login and cart

I have a domain with SSL and some problems ONLY with Google Chrome (v. 39.0.2171.95 m). When a user tries to login with SSL (https: //www.mydomain.com/customer/account/login/), he returns to the ...
1
vote
1answer
1k views

Magento 2 Customers can't login and add product to cart

The customers can't login, Magento return a 302 found response The admin can login without problems. And I can't add products to cart, Magento returns a 302 found response. I already do: Clean ...
0
votes
0answers
113 views

Can not login with customer emai1 in magento2

I am getting below error in my log file when try to login. main.CRITICAL: No such entity with customerId = [] [] Tried below solution that didn't work. Magento 2 - Moving site - 'No such ...
6
votes
2answers
20k views

Transferring Magento website, admin panel URL gives 404

I'm having a problem which I've never experienced before when moving a Magento website to a new server. The transfer was complete and the website is working fine, the only problem is that the admin ...
5
votes
8answers
13k views

Frontend login not working in Chrome with https enabled (1.9)

For what I can see in questions already posted, Chrome may be a bit 'fussy' when it comes to cookies and login issues in newer versions of Magento. The problem I'm experiencing concerns secure mode ...
2
votes
6answers
14k views

Magento login admin page FATAL ERROR / WHITE SCREEN

My Magento login admin page has a FATAL ERROR / WHITE SCREEN I've looked at the other questions which were similar but haven't been able to fix it. My site is at Problem: Attempts to Fix: Another ...
4
votes
2answers
5k views

Get current URL of page outisde AJAX request?

I'm loading parts of the page via AJAX whose content includes a customer login link: Mage::helper('customer')->getLoginUrl() Clicking the link gets the user to the login page and returns back to ...
4
votes
5answers
10k views

How to change default logo of magento admin panel

How to change default logo of magento admin panel
4
votes
3answers
1k 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 ...
1
vote
1answer
606 views

Customer mini login form not working with form key

I have added a mini login for in topmenu using code <?php echo $this->getLayout()->createBlock('customer/form_login')->setTemplate('customer/form/mini.login.phtml')->toHtml(); code ...
6
votes
4answers
9k views

Programatically clear the cart of a logged-in user

TL;DR When a customer is logged in, Mage::getSingleton('checkout/session')->clear(); doesn't clear their cart. I need something that will. I've asked this as part of another question, but i ...
4
votes
2answers
859 views

MagePlaza Social Logins Facebook Error: Ooophs, we got an error: Authentication failed! Facebook returned an invalid user id [closed]

For some reason when I try to use the MagePlaza Social Login extension, Facebook login throws this error: Ooophs, we got an error: Authentication failed! Facebook returned an invalid user id. I ...
4
votes
6answers
6k views

Admin login looping around

I'm having the problem where I can't log into the backend of Magento 1.8 after I've pulled it onto my local vagrant box. When I log in using an incorrect password, I get an error message. When I use ...
4
votes
2answers
5k views

Force login to access catalog and product pages

Is there a way to force (simply redirect to login page) the user log-in, to access catalog and product pages?
3
votes
2answers
1k views

Redirect customer login/register success to checkout Magento 2.2

I am creating a module for redirect login/register success to checkout if customer has some items on quote but that's not working. If I stop the event with that die; on Observer/Redirect.php above ...