diff options
Diffstat (limited to 'doc/security/reset_user_password.md')
-rw-r--r-- | doc/security/reset_user_password.md | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/doc/security/reset_user_password.md b/doc/security/reset_user_password.md index 38c52912d5c..f8ba3953379 100644 --- a/doc/security/reset_user_password.md +++ b/doc/security/reset_user_password.md @@ -96,7 +96,7 @@ If you know the username, user ID, or email address, you can use the Rails conso user.password = new_password user.password_confirmation = new_password ``` - + To set a specific value for the new password: ```ruby @@ -113,9 +113,9 @@ If you know the username, user ID, or email address, you can use the Rails conso 1. Save the changes: - ```ruby - user.save! - ``` + ```ruby + user.save! + ``` 1. Exit the console: @@ -145,10 +145,10 @@ attempt to fix this issue in a Rails console. For example, if a new `root` passw 1. Start a [Rails console](../administration/operations/rails_console.md). 1. Find the user and skip reconfirmation: - ```ruby - user = User.find(1) - user.skip_reconfirmation! - ``` + ```ruby + user = User.find(1) + user.skip_reconfirmation! + ``` 1. Attempt to sign in again. |