Make the first user as admin,user with id =1

This commit is contained in:
Gopesh Tulsyan 2014-04-08 22:01:47 +05:30
parent f6e60823a7
commit 817861a5e4
3 changed files with 9 additions and 13 deletions

View file

@ -77,14 +77,9 @@ bundle exec rake db:seed
7. Connect to osem.example.org and register your first user. Make also sure that Postfix is installed and configured on the system for the confirmation mail to pass through.
<!-- 8. To make the first registered user an admin:
```
rails console
User.all
me = User.find('1')
me.role_ids=[3]
``` -->
8. Login as Admin with email:admin@opensuse.org and password:admin1234
8. Just sign up as a new user and you will be automatically assigned as admin role.
Caveats
=======