Giter Club home page Giter Club logo

Comments (6)

timothycarambat avatar timothycarambat commented on August 16, 2024

Can you open up a database explorer and see if the users table has the admin credential created? Also, can you open the network tab before sending login credentials and ensure that the endpoint requests are being sent to is :3001/api/.. and not :3000/api/...

from vector-admin.

LIdro avatar LIdro commented on August 16, 2024

Can you open up a database explorer and see if the users table has the admin credential created? Also, can you open the network tab before sending login credentials and ensure that the endpoint requests are being sent to is :3001/api/.. and not :3000/api/...

Thanks for the reply.

  • The users table has no records in it
  • As the image below shows, the login request goes to :3000/api/... instead.

I guess this is my problem. Please how can I resolve it?

Thanks for the help so far.

network-tab

from vector-admin.

timothycarambat avatar timothycarambat commented on August 16, 2024

change the value of VITE_API_BASE in frontend/.env to be VITE_API_BASE='http://localhost:3001/api'

from vector-admin.

LIdro avatar LIdro commented on August 16, 2024

change the value of VITE_API_BASE in frontend/.env to be VITE_API_BASE='http://localhost:3001/api'

Thanks for the response. I will do it and get back to you.

Then what about the absence of the root account in the users table? How can I make the app to create the record? I know it should concern Prisma. I tried entering it manually but the password is not hashed. I guess there should be another way to go about this. Thanks.

from vector-admin.

timothycarambat avatar timothycarambat commented on August 16, 2024

When the system boots up it will attempt to read the users table and auto-create the root account. So unless the database connection string is incorrect then it should automatically do that and enable login!

We will be removing that flow soon with PR #132
So that should simplify things a lot - this detail always causes issues and there are ways to accomplish what it does without making a user that can never been used again

from vector-admin.

LIdro avatar LIdro commented on August 16, 2024

I have done all I can to get the system to boot.
I have tried placing breakpoints when systemInit() is called, I have stopped and restarted the flask api and the frontend server, all so that I can see if the query to create the user is executed but it does not hit any of my breakpoints.
I have even created another database and called prisma setup to it. It did all but nothing I do auto creates the root user.

I manually created a root user with password encrypted using bcrypt, 10 but it still will not let me in.

Is there something I am missing or could do? Please I really need this vectorAdmin solution.

Thanks.

from vector-admin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.