Skip to content
Snippets Groups Projects
Verified Commit c39b8780 authored by Katrin Leinweber's avatar Katrin Leinweber Committed by GitLab
Browse files

Fix user.update! Rails snippet

parent 39748cbd
No related branches found
No related tags found
2 merge requests!164749Enable parallel in test-on-omnibus,!160033Fix user.update! Rails snippet
......@@ -336,10 +336,13 @@ return this error:
To resolve this issue, you can update the password expiration by either:
- Using the `gitlab-rails console`:
- Using the [GitLab Rails console](../../administration/operations/rails_console.md)
to check and update the user data:
```ruby
gitlab-rails console
user = User.find_by_username('<USERNAME>')
user.password_expired?
user.password_expires_at
user.update!(password_expires_at: nil)
```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment