diff options
author | Job van der Voort <job@gitlab.com> | 2015-05-08 14:36:24 +0000 |
---|---|---|
committer | Job van der Voort <job@gitlab.com> | 2015-05-08 14:36:24 +0000 |
commit | c74a0be9f84acc8e70e31b7f3ad322d84a0f2174 (patch) | |
tree | cb2d300c6f3bdeebbb02fcadb3935698213f682b /doc/security | |
parent | 83c5aa6888f97082e1fd0850ff5cd071147501be (diff) | |
download | gitlab-ce-c74a0be9f84acc8e70e31b7f3ad322d84a0f2174.tar.gz |
make it more obvious what happens in the code
Diffstat (limited to 'doc/security')
-rw-r--r-- | doc/security/reset_root_password.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/security/reset_root_password.md b/doc/security/reset_root_password.md index d791f53adfa..3c13f262677 100644 --- a/doc/security/reset_root_password.md +++ b/doc/security/reset_root_password.md @@ -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. ```bash -irb(main):001:0> u = User.where(id: 1).first +user = User.where(id: 1).first ``` or @@ -25,8 +25,8 @@ user = User.find_by(email: 'admin@local.host') Now you can change your password: ```bash -u.password = 'secret_pass' -u.password_confirmation = 'secret_pass' +user.password = 'secret_pass' +user.password_confirmation = 'secret_pass' ``` 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 Don't forget to save the changes. ```bash -u.save! +user.save! ``` Exit the console and try to login with your new password.
\ No newline at end of file |