[root@VM-16-14-centos ~]# su - git
-sh-4.2$ gitlab-rails console production
Loading production environment (Rails 4.2.6)
irb(main):001:0> user = User.where(id:1).first
irb(main):009:0> user.password='admin@123!'
=> "admin@123!"
irb(main):010:0> user.save
=> true
irb(main):011:0> user = User.where(id:1).first
irb(main):002:0> user.email='[email protected]'
=> "[email protected]"
irb(main):003:0> user.save
Enqueued ActionMailer::DeliveryJob (Job ID: 4e4deb11-0292-4ad7-9e17-29943391f42b) to Sidekiq(mailers) with arguments: "DeviseMailer", "confirmation_instructions", "deliver_now", gid://gitlab/User/1, "S_K14x1f3jceB-xBYJzy", {:to=>"[email protected]"}
=> true
irb(main):004:0>quit
-sh-4.2$
标签:gitlab,4.2,com,重置,user,irb,main,root From: https://www.cnblogs.com/myibm/p/17386472.html