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

Can't create admin user #1

Closed
poblabs opened this issue Apr 12, 2023 · 2 comments
Closed

Can't create admin user #1

poblabs opened this issue Apr 12, 2023 · 2 comments

Comments

@poblabs
Copy link

poblabs commented Apr 12, 2023

Hey there, I am using this in a single user mode, and I typically create my single user account names as "admin". This won't let me create admin. Is that because it already exists? If so, I didn't see the password in the readme?

Thanks!

@thomiceli
Copy link
Owner

Hi, its because it would create a conflict between two URLs with the same path /admin (the one which show all gists for a user /:user and the hardcoded one which is the admin panel /admin).

g2 := g1.Group("/admin")

g1.GET("/:user", allGists)

Maybe we could change the URL of the admin panel to allow a user named admin..?

@poblabs
Copy link
Author

poblabs commented Apr 12, 2023

Ah, that makes sense. I'm happy to use another username, just happened to try admin first and saw it was giving me an error 😄 If you want to leave it as-is, I'm fine with that. Feel free to close this issue if so!

jiriks74 pushed a commit to jiriks74/opengist that referenced this issue Apr 28, 2024
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

2 participants