Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chrome Admin Login fails #781

Closed
michaeltimm81 opened this issue Dec 5, 2014 · 16 comments
Closed

Chrome Admin Login fails #781

michaeltimm81 opened this issue Dec 5, 2014 · 16 comments
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development

Comments

@michaeltimm81
Copy link

Trying to login into admin via Chrome fails with no error message.

In Magento 1 disabling
system config -> web -> default cookie settings -> use HTTP only fixed this issue, but in Magento 2 this option seems to have no effect.

@safwkhan
Copy link
Contributor

safwkhan commented Dec 6, 2014

Can you please provide us more details? Did you select HTTPS option for admin during installation, and are you trying to login using HTTPS?

@michaeltimm81
Copy link
Author

I did not select HTTPS for admin during installation. The admin url is not HTTPS either.

It seems to resolve the issue when I set the base url to http://127.0.0.1 instead of http://localhost. Then I am able to see the ‚admin‘ cookie in Chromes developer tools and login works fine.

@jemoon
Copy link

jemoon commented Dec 6, 2014

@michaeltimm81 Cookies are designed for second level domains so on a first level domain (like localhost) you wont be able to use any application which uses cookies on localhost. One of the simplest solutions is to create a virtaulhost like magento2.dev and set it up as a base url (having a '.' in domain is a thing which distinguish first and second level domains).

@michaeltimm81
Copy link
Author

Is this new in Magento 2? It worked in Magento 1 and it also works with every other Browser than Chrome.

@maksek
Copy link
Contributor

maksek commented Dec 29, 2014

Hi @michaeltimm81, it was not new, but possible workaround. Can you please let us know if you have resolved the issue with latest code.

@michaeltimm81
Copy link
Author

Works :)

@maksek
Copy link
Contributor

maksek commented Jan 20, 2015

Awesome, closing the issue, feel free to reopen in case if it will occur again

@maksek maksek closed this as completed Jan 20, 2015
@michaeltimm81
Copy link
Author

The issue is back. Changing the base url to 127.0.0.1 doesn't fix this anymore, with localhost there is no cookie set at all. With 127.0.0.1 there is only a form_key cookie set, but no admin cookie.

@gesell
Copy link

gesell commented Jun 24, 2015

Yep. I also got this issue loggin in Chrome.

@vpelipenko vpelipenko reopened this Jun 25, 2015
@vpelipenko
Copy link
Contributor

Internal ticket: MAGETWO-39582

@vpelipenko vpelipenko added Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development and removed question labels Jul 1, 2015
@maskeyarun
Copy link

I had this issue. I had to made the database connection of "localhost" to "127.0.0.1". I don't know how that really mattered and resolved internally.

@vancoz
Copy link

vancoz commented Oct 8, 2015

Hello @maskeyarun, @Eskaliert and @michaeltimm81

I have tried to reproduce the issue, used localhost, 127.0.0.1, magento.loc and different db connection settings (and I would like to assure you that connection settings can not impact authentication, if you application able to connect and have access to DB). And I can not reproduce this issue (except localhost case).

So problem with localhost described in this post http://alankent.me/2015/04/25/use-of-localhost-when-installing-magento-2-quick-note/. Currently Magento does not support not fully qualified domain names.

I found only one possible configuration problems that can be reason of this issue. Probably you have set localhost in Magento config. Please check core_config_data table, web/unsecure/base_url and web/secure/base_url values. In this case does not meter which url used to access admin panel, it will redirect you to localhost.

If this is not the case, please provide me more details how to reproduce the issue:

  1. app/etc/env.php file
  2. dump of core_config_data table
  3. what exactly domain do you use

Thank you

@Vasimkadiwala
Copy link

Trying to Login to Admin panel(Magento 2) with chrome failed with no error message
with firefox its working fine

1.Tried different domain name instead of local host
2. Tried disabling system config -> web -> default cookie settings -> use HTTP only

But No luck

@deepthi743
Copy link

I had an issue while logging in to admin panel from firefox. It says that Username or Password is wrong or account is currently disabled. I tried to correct some of source codes but doesn't work.Any solution for this??

@mazhalai
Copy link
Contributor

@michaeltimm81 has your issue been resolved? Have you followed @vancoz's suggestion above

@sshrewz
Copy link

sshrewz commented Feb 23, 2016

@michaeltimm81, since we have not heard from you for quite some time, we will go ahead and close this issue. In case you have any further questions, don't hesitate to reopen.

@sshrewz sshrewz closed this as completed Feb 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development
Projects
None yet
Development

No branches or pull requests