Commit f506249b authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs-add-user-section' into 'master'

Add section for Users, and Create user from console

See merge request gitlab-org/gitlab!68407
parents 3886d2ac b7d527f7
......@@ -554,6 +554,14 @@ end
## Users
### Create new user
```ruby
u = User.new(username: 'test_user', email: 'test@example.com', name: 'Test User', password: 'password', password_confirmation: 'password')
u.skip_confirmation! # Use it only if you wish user to be automatically confirmed. If skipped, user will recieve confirmation e-mail
u.save!
```
### Skip reconfirmation
```ruby
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment