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

Simplify first admin setup #24

Closed
hennevogel opened this issue Oct 28, 2013 · 8 comments
Closed

Simplify first admin setup #24

hennevogel opened this issue Oct 28, 2013 · 8 comments
Labels
feature 💡 For something new in the app

Comments

@hennevogel
Copy link
Member

Currently you have seed the DB with the roles and work some "rails console" magic to make a user the first admin. We should simplify that. One possibility would be to always make the user with the ID 1 Admin. Other ideas?

@differentreality
Copy link
Contributor

After we create the roles, can't we also create a new person/user and set it as admin?

@hennevogel
Copy link
Member Author

Sure we could but that would mean a standard user and a standard password, I would like to avoid this.

@differentreality
Copy link
Contributor

Not sure what is better... Expect people to change the user/password from the seeds file or risk an unlikely yet possible situation that someone else, except for the intended person, creates the first user and gets the admin role?

@hennevogel
Copy link
Member Author

Assigning admin rights to the first user seems to be the standard with webapps these days. I think we should follow it.

@gopesht
Copy link
Member

gopesht commented Apr 8, 2014

We can create a default user with email_id:admin@opensuse.org and password:admin and set the role as admin role=3 .Then we can specify this in the documentation to login with these credentials as admin.This would simplify the first admin setup, and there won't be any need to modify the role explicitly.

@hennevogel
Copy link
Member Author

@gopesht Have you read the previous comments?

@gopesht
Copy link
Member

gopesht commented Apr 8, 2014

So to assign admin role with id 1.If that's the drill, then I can modify the pull request. I said this because I have used web apps that follow the procedure that I mentioned above.

@hennevogel
Copy link
Member Author

Fixed in 5ed51c7

ancorgs added a commit to ancorgs/osem that referenced this issue May 5, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💡 For something new in the app
Projects
None yet
Development

No branches or pull requests

3 participants