GITLAB重置密码

cd /opt/gitlab/bin
gitlab-rails console production
-------------------------------------------------------------------------------------
 GitLab:       11.11.0 (3e8ca2fb781)
 GitLab Shell: 9.1.0
 PostgreSQL:   9.6.11
irb(main):002:0> u=User.where(id:1).first
=> #<User id:1 @root>
irb(main):003:0> u
=> #<User id:1 @root>
irb(main):004:0> u.password='12345678'
=> "12345678"
irb(main):005:0> u.password_confirmation='12345678' 
=> "12345678"
irb(main):006:0> u.save
Enqueued ActionMailer::DeliveryJob (Job ID: ffd8c699-04eb-4ae7-a3c5-ed4d0930e28e) to Sidekiq(mailers) with arguments: "DeviseMailer", "password_change", "deliver_now", #<GlobalID:0x00007fdf8ea9ff90 @uri=#<URI::GID gid://gitlab/User/1>>
=> true