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

Admin Login always redirect to register #1324

Closed
sidharthv96 opened this issue Jun 6, 2018 · 2 comments
Closed

Admin Login always redirect to register #1324

sidharthv96 opened this issue Jun 6, 2018 · 2 comments
Labels
status: duplicate Is a duplicate of another issue

Comments

@sidharthv96
Copy link
Contributor

Informations

  • Node.js version: v9.11.1
  • npm version: 5.6.9
  • Strapi version: 3.0.0-alpha.12.2
  • Database: MongoDB
  • Operating system: Ubuntu 18.04

What is the current behavior?
Even after registering an admin user, if I try to login again or from incognito, it redirects again to the register page.
The flow works fine from my local dev environment. (MacOS)

Steps to reproduce the problem

strapi new testapp
Go to localhost:1337/admin/
It should redirect to registration page.
Create a new account.

Open Incognito
Go to localhost:1337/admin/
It will again open the registration page.
After registering, If we log out, we can sign in to the old account.

What is the expected behavior?

In Incognito, the user should be shown login page.

Suggested solutions
Plugin initialising problem at the frontend.
/users-permissions/init is returning {"hasAdmin":true}
And second user is being registered as a normal user and not Admin user.

Test

@jdutchak
Copy link

jdutchak commented Jun 6, 2018

this link has a fix that worked for me
#1235

@lauriejim
Copy link
Contributor

Fixed here #1222.
Please follow the issue template message. You don't try to search on closed issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: duplicate Is a duplicate of another issue
Projects
None yet
Development

No branches or pull requests

3 participants