Skip to main content

Questions tagged [login]

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

Filter by
Sorted by
Tagged with
100 votes
18 answers
201k 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 log in to the Magento admin panel and I typed username and password, clicked the Login button and ...
SIBHI S's user avatar
  • 2,055
80 votes
22 answers
138k 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?
Rakesh Jesadiya's user avatar
43 votes
12 answers
62k views

Customer Login Doesn't Work in Magento 1.9

I just did a fresh installation of Magento 1.9.0.1 and I am seeing some very odd behaviour with the customer login form. In Chrome (version 36) the login form does not work. I am just redirected to ...
Josh Pennington's user avatar
34 votes
2 answers
74k views

Magento 1 - 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 ...
May18's user avatar
  • 581
17 votes
6 answers
41k 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 ...
TFS's user avatar
  • 4,339
17 votes
1 answer
871 views

Magento2 : 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 ?
Shashi's user avatar
  • 196
15 votes
2 answers
5k 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 ...
Marius's user avatar
  • 198k
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. ...
Derek's user avatar
  • 311
12 votes
2 answers
15k 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.
user2656802's user avatar
12 votes
2 answers
5k 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 ...
Alex W G's user avatar
  • 153
11 votes
7 answers
23k 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-...
vnnogile_user's user avatar
11 votes
4 answers
9k 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 ...
Buttle Butkus's user avatar
11 votes
3 answers
3k 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 ...
zekia's user avatar
  • 650
11 votes
1 answer
2k 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 ...
Noemi Quezada's user avatar
10 votes
14 answers
58k 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. <?...
phpschool's user avatar
  • 397
10 votes
3 answers
15k 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?
TFS's user avatar
  • 4,339
10 votes
5 answers
18k 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 ...
Trimantra Software Solution's user avatar
10 votes
2 answers
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 ...
Alana Storm's user avatar
  • 44.4k
9 votes
2 answers
13k 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 ...
Evrijn's user avatar
  • 320
9 votes
1 answer
3k 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?
H. Ferrence's user avatar
  • 1,041
9 votes
2 answers
4k views

Adding a block to login onepage checkout

I try 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 process (in my case Github). ...
Sylvain Rayé's user avatar
8 votes
3 answers
11k 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.
Krupali's user avatar
  • 1,140
8 votes
1 answer
6k views

Magento 2.2.3 an unspecified error occurred please contact us for assistance at customer login

I am unable to login to customer account it is giving error 'an unspecified error occurred please contact us for assistance'. I have checked my customer_entity table has columns 'failures_num' and '...
akshay billore's user avatar
8 votes
1 answer
11k 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 ...
slamarca's user avatar
7 votes
3 answers
23k 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?
Hunter's user avatar
  • 1,484
7 votes
2 answers
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). ...
Francis Kim's user avatar
  • 2,973
6 votes
9 answers
9k 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 ...
ManuHH's user avatar
  • 103
6 votes
1 answer
15k 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 ...
Front_End_Dev's user avatar
6 votes
6 answers
11k 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 ...
Matt Flamm's user avatar
6 votes
2 answers
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 - ...
Willem Rabsztyn's user avatar
6 votes
3 answers
885 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 ...
Baby in Magento's user avatar
6 votes
8 answers
15k 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 ...
cortopy's user avatar
  • 191
6 votes
4 answers
8k 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 ...
Bharat Desai - Certified Dev's user avatar
6 votes
2 answers
2k 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 ...
Jon's user avatar
  • 368
6 votes
2 answers
17k 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" ...
jolyqr's user avatar
  • 231
6 votes
2 answers
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 ...
thairish's user avatar
  • 199
6 votes
1 answer
9k views

Magento 2: Force Sign-In not working

I'm already logged in the frontend of my website. Then I go to Admin -> Customers -> Edit My Customer & Click on Force Sign-In It gives below error This customer has no tokens. The user ...
Jackson's user avatar
  • 9,939
6 votes
7 answers
12k 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 ...
Tokipudi's user avatar
6 votes
5 answers
9k views

Magento cookie issue..Customer can't login

I am facing weird problem that some customer can't login to their account.When customer try to login ,it redirect to same page without any error.it happens user who visited the site before. And for ...
user1096332's user avatar
6 votes
1 answer
194 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 wise the the ...
VijayS91's user avatar
  • 1,788
6 votes
1 answer
3k 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....
user1240207's user avatar
  • 1,339
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` =...
Sushivam's user avatar
  • 2,639
5 votes
5 answers
27k views

how to show my account link in header after successfully login in magento 2.0

how to show my account link in header after successfully login in magento
vnnogile_user's user avatar
5 votes
4 answers
1k 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\...
Developper Magento 's user avatar
5 votes
1 answer
3k 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 ...
user avatar
5 votes
1 answer
2k 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 ...
themanwhoknowstheman's user avatar
5 votes
2 answers
3k views

Show customer data after setCustomerAsLoggedIn()

Im experiencing an issue with Magento 2.1.7 I want to login users programmatically by only their email. But after setCustomerAsLoggedIn it still shows sign in or create an account in the header. ...
Web Weave's user avatar
  • 200
5 votes
2 answers
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 ...
David's user avatar
  • 51
5 votes
1 answer
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')-&...
harry's user avatar
  • 197
5 votes
2 answers
3k views

Magento 2 - How do I track login/register/subscribe with JavaScript?

In Magento 2 I need to invoke some JS tracking when the following things happen: customer logs into site customer registers account newsletter subscribe success customer updates account details order ...
Adam Moss's user avatar
  • 1,329

1
2 3 4 5
17