Document how to activate a new user from rails console
This commit is contained in:
parent
4365c59b4f
commit
e535fd4fd5
1 changed files with 10 additions and 1 deletions
11
debian/README.Debian
vendored
11
debian/README.Debian
vendored
|
@ -138,13 +138,22 @@ The steps involve dropping into rails console as gitlab user for production envi
|
|||
irb(main):003:0> user.password_confirmation = 'secret_pass'
|
||||
irb(main):004:0> user.save!
|
||||
|
||||
Activating a newly registered user
|
||||
======================================
|
||||
The steps involve dropping into rails console as gitlab user for production environment and running the following commands.
|
||||
$ gitlab-rails-console
|
||||
irb(main):001:0> user = User.find_by(email: 'useraddress@domain')
|
||||
irb(main):004:0> user.state='active'
|
||||
irb(main):005:0> user.save
|
||||
|
||||
Granting an existing user admin access
|
||||
======================================
|
||||
The steps involve dropping into rails console as gitlab user for production environment and running the following commands.
|
||||
$ gitlab-rails-console
|
||||
irb(main):001:0> user = User.find_by(email: 'useraddress@domain')
|
||||
irb(main):003:0> user.admin=true
|
||||
irb(main):004:0> user.save
|
||||
irb(main):004:0> user.state='active'
|
||||
irb(main):005:0> user.save
|
||||
|
||||
Latest information regarding supported versions
|
||||
===============================================
|
||||
|
|
Loading…
Add table
Reference in a new issue