Commit c74a0be9 authored by Job van der Voort's avatar Job van der Voort

make it more obvious what happens in the code

parent 83c5aa68
...@@ -13,7 +13,7 @@ Wait until the console has loaded. ...@@ -13,7 +13,7 @@ Wait until the console has loaded.
There are multiple ways to find your user. You can search for email or username. 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 user = User.where(id: 1).first
``` ```
or or
...@@ -25,8 +25,8 @@ user = User.find_by(email: 'admin@local.host') ...@@ -25,8 +25,8 @@ 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' user.password = 'secret_pass'
u.password_confirmation = 'secret_pass' user.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.
...@@ -34,7 +34,7 @@ It's important that you change both password and password_confirmation to make i ...@@ -34,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! user.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