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
Comments
Can you please provide us more details? Did you select HTTPS option for admin during installation, and are you trying to login using HTTPS? |
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. |
@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). |
Is this new in Magento 2? It worked in Magento 1 and it also works with every other Browser than Chrome. |
Hi @michaeltimm81, it was not new, but possible workaround. Can you please let us know if you have resolved the issue with latest code. |
Works :) |
Awesome, closing the issue, feel free to reopen in case if it will occur again |
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. |
Yep. I also got this issue loggin in Chrome. |
Internal ticket: MAGETWO-39582 |
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. |
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:
Thank you |
Trying to Login to Admin panel(Magento 2) with chrome failed with no error message 1.Tried different domain name instead of local host But No luck |
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?? |
@michaeltimm81 has your issue been resolved? Have you followed @vancoz's suggestion above |
@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. |
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.The text was updated successfully, but these errors were encountered: