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

I was able to delete admin user #58

Closed
lukaspour opened this issue Jan 9, 2016 · 2 comments
Closed

I was able to delete admin user #58

lukaspour opened this issue Jan 9, 2016 · 2 comments

Comments

@lukaspour
Copy link

Hi, while trying to change default users password, I have deleted the admin user. Now I can not recreate one or login. I believe the UI should not let user to delete admin user ;-)

BTW, when this happens, how do I create a new admin user? Directly in MongoDB?

thank you

@matejkramny
Copy link
Contributor

Hi, during load it creates a new admin user automatically.

File -> https://github.com/ansible-semaphore/semaphore/blob/master/lib/config.js#L60

I think just restarting the server can do, unless the user still exists in the database. In that case, just nuke the document and restart the server.

@matejkramny
Copy link
Contributor

Actually it looks like you might have to delete all users in order for this to create the admin user.

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