Commit c406bce4 authored by Karen Carias's avatar Karen Carias

Deleted > and commented "or" out

parent 94a426d2
...@@ -5,7 +5,7 @@ Log into your server with root privileges. Then start a Ruby on Rails console. ...@@ -5,7 +5,7 @@ Log into your server with root privileges. Then start a Ruby on Rails console.
Start the console with this command: Start the console with this command:
```bash ```bash
> gitlab-rails console production gitlab-rails console production
``` ```
Wait until the console has loaded. 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. ...@@ -14,15 +14,19 @@ There are multiple ways to find your user. You can search for email or username.
```bash ```bash
irb(main):001:0> u = User.where(id: 1).first irb(main):001:0> u = User.where(id: 1).first
```
or or
```bash
user = User.find_by(email: 'admin@local.host') user = User.find_by(email: 'admin@local.host')
``` ```
Now you can change your password: Now you can change your password:
```bash ```bash
> u.password = 'secret_pass' u.password = 'secret_pass'
> u.password_confirmation = 'secret_pass' u.password_confirmation = 'secret_pass'
``` ```
It's important that you change both password and password_confirmation to make it work. 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 ...@@ -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. Don't forget to save the changes.
```bash ```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.
\ No newline at end of file
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