Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [login]

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

93
votes
16answers
181k 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 ...
51
votes
18answers
55k 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?
41
votes
12answers
57k 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 ...
32
votes
2answers
66k views

How to check whether user has logged in or not in magento?

I am doing mobile apps and I would like to know how to check whether user is already logged in or not. Is there any observer event to track? If it is detected that the account is logged in, the user ...
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 ...
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.
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 ...
10
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 ...
10
votes
3answers
1k views

Login and redirect customer to his website

In a mutistore-multiwebsite Magento, I'd like to force users to login to the same website they have registered. They might use any login form, in any website, but the form should check their ...
10
votes
2answers
2k views

Can't Login to Admin after Installing Extension

Apologies in advance for the thin details on this one. I sell a Magento extension. With the latest release, I've started getting an odd bug report from a few users. Specifically, after installing ...
10
votes
0answers
241 views

Separate login and Shipping methods from Shipping Step

I wanted to Separate login and Shipping methods from Shipping Step in Magento 2 on Checkout page ?
10
votes
1answer
1k 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. ...
10
votes
1answer
1k views

Magento 2: User login sometimes requires to login twice on multi store setup

I am trying to setup a multi store with shared cart. However, the user login sometimes does not work. The Store Switcher works fine, but the frontend User Login on 2nd and 3rd Store requires me to ...
9
votes
5answers
16k 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 ...
9
votes
2answers
3k views

Adding a block to login onepage checkout

I ty to add an additional login option during the checkout process. At the moment, you have the username/password way. I want to add a button image to login via an oauth processs (in my case Github). ...
8
votes
10answers
53k 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. <?...
8
votes
3answers
6k 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?
8
votes
7answers
13k 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-...
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 ...
7
votes
1answer
1k views

How to stay logged into Magento 2.0 longer

Magento 2.0.2 seems to log me out after 5 or so minutes of inactivity. Is there a setting to keep me logged into the Admin backend longer? If so, where and how?
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). ...
7
votes
2answers
1k views

remove unsecure content from modals-wrapper

Out of the box Magento 2 adds <div class="modal-content" data-role="content"> div at the end of the code. I am not sure what it is supposed to do. But it contains a login form with password ...
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 ...
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 ...
6
votes
3answers
726 views

Guest can't create product programtaically [ similar to wishlist ]

If the Registered user click on "save design" button we are creating new product. Issue : But if guest user click on "save design" button, we are displaying pop up box to register or login. once ...
6
votes
1answer
2k views

Check user is logged in or not using Javascript

If user click on button in Product view page , we are redirecting to another url [ say 1.html] with help of js code : window.location.replace(responseData.redirect);. But i want to redirect only if ...
6
votes
2answers
5k 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 ...
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 ...
6
votes
1answer
14k 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" ...
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 ...
6
votes
1answer
180 views

How to set understory session

I have use Enterprice edition I want to set the session for magento site like Gmail. The user login, the session will set. Once user click logout button the session will destory. Other ...
5
votes
3answers
13k 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 ...
5
votes
3answers
5k views

Magento 2: How to redirect customer to login page

How can I check customer is logged in or not? If customer is not logged in then how to redirect him to the login page? I want to do this from .phtml file. So please help me as per that.
5
votes
2answers
7k views

Customers can't login and can't create an account

On some browsers users are unable to login. Users also don't get feedback. The Magento system just doesn't respond. Sometimes the login does work in incognito mode. Some things I already checked - ...
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 ...
5
votes
4answers
235 views

How to redirect customer from controller not observer to login page magento 2

I want to redirect customer to login page in my controller without using observer. here is my code protected $urlInterface; public function __construct( \Magento\Framework\App\Action\...
5
votes
1answer
858 views

Prevent login from login observer in magento2

Trying to prevent registered users from logging in based on their customer group id. I have this working in magento 1, however I haven't been successful in replicating it on magento2. Any help is ...
5
votes
6answers
5k views

Magento keeps randomly logging me out of the admin panel

I am new to Magento, and have some issue with the admin panel. For some reason, I keep being disconnected from the admin panel, which makes it really hard to change what I want on the website, as I ...
5
votes
2answers
2k views

Cookie Issue on Multistore Installation

I have following issue: I have a multistore installation where I have a main store (example.com) a second store for members only (sub.example.com), which has the login page as the start page on that ...
5
votes
1answer
2k views

Login Does Not Work Because of Subdomain Cookie

We have a multi site/store which is on a subdomain level (Magento v1.14.1.0): main.com store1.main.com store2.main.com Logging in without the main.com frontend cookie enables the login in store1....
5
votes
1answer
5k views

Redirect back to previous page only on successful login

I am trying to show catalog prices only to logged in users. Following snippet works however it has two issues: if(!Mage::helper('customer')->isLoggedIn()) { Mage::getSingleton('customer/session')-&...
5
votes
0answers
133 views

Magento Migration and Login Page Cookie Errors [closed]

I recently migrated from a VPS to a dedicated server, and the migration, while a little bumpy, went smoother than I ever imagined. However, there has been one lingering issue. The dreaded customer ...
4
votes
5answers
13k 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
5answers
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
9k views

How to change default logo of magento admin panel

How to change default logo of magento admin panel
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?
4
votes
1answer
1k views

How to redirect my custom module url after admin login

What I want: Admin should redirect my custom module url('adminhtml_module1/testimonial/index') instead of dashboard page after successfully admin login. Any idea ? How can I do this ?
4
votes
1answer
984 views

One Page Checkout Login Fails 1.8.1

This doesn't seem to be related to any additional modules as I've been testing it a lot. When someone logs in it all goes to the same controller, but if the $_POST variable context is set to checkout,...
4
votes
2answers
4k 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 ...