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 #102

Open
Lakewith opened this issue Jan 25, 2024 · 6 comments
Open

Admin #102

Lakewith opened this issue Jan 25, 2024 · 6 comments

Comments

@Lakewith
Copy link

Sup, i saw already that some1 asked how to create a admin user / super user but i would love if some1 could just explain step by step how it works, ive tried like everything i know but its still not working.

Regards.

@knulii
Copy link
Contributor

knulii commented Jan 27, 2024

Yo dog. Here is how I have done it:

Create a new user via the website
Then you need to mysql into the database and get the new user's id

mysql
USE marketplace;
SHOW TABLES;
to list all the tables in the db
SELECT * FROM users;
copy the id of the new user you created. ie. 'dc000e70-8708-11ee-8306-fbe541b683a1'
then you need to insert the id into admins
INSERT INTO admins (id) VALUES ('dc000e70-8708-11ee-8306-fbe541b683a1');
FLUSH PRIVILEGES;
exit

New user should now be admin. Something like that

@dclipca
Copy link
Member

dclipca commented Jan 27, 2024

Also if you're new to SQL you can use DBeaver or pgadmin to visualize the db tables. You just need to add a new row to the admins table. The row should have the id of the admin.

@Lakewith
Copy link
Author

Thank you very much! Helped me a lot.

@Lakewith
Copy link
Author

and any idea maybe in which file i could change the color of the top bar?

@dclipca
Copy link
Member

dclipca commented Jan 28, 2024

and any idea maybe in which file i could change the color of the top bar?

Right click -> Inspect -> find the color of the top bar -> search for it in the code -> change until you get the correct reference

@dclipca
Copy link
Member

dclipca commented Jan 28, 2024

I would have told but I haven't used eckmar for a long time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants