Deleted > and commented "or" out

This commit is contained in:
Karen Carias 2015-05-07 16:48:25 +00:00
parent 94a426d2e6
commit c406bce4b5

View file

@ -5,7 +5,7 @@ Log into your server with root privileges. Then start a Ruby on Rails console.
Start the console with this command:
```bash
> gitlab-rails console production
gitlab-rails console production
```
Wait until the console has loaded.
@ -14,15 +14,19 @@ There are multiple ways to find your user. You can search for email or username.
```bash
irb(main):001:0> u = User.where(id: 1).first
```
or
```bash
user = User.find_by(email: 'admin@local.host')
```
Now you can change your password:
```bash
> u.password = 'secret_pass'
> u.password_confirmation = 'secret_pass'
u.password = 'secret_pass'
u.password_confirmation = 'secret_pass'
```
It's important that you change both password and password_confirmation to make it work.
@ -30,7 +34,7 @@ It's important that you change both password and password_confirmation to make i
Don't forget to save the changes.
```bash
> u.save!
u.save!
```
Exit the console and try to login with your new password.
Exit the console and try to login with your new password.