Gitlab 重置用户密码

进入服务器 gitlab 控制台
gitlab-rails console production
查找用户账号

以下几种方式都可以

user=User.where(name: "用户").firstu

user=User.where(username: "user").first

user=User.where(email: "[email protected]").first

user=User.where(id: "10").first
设置用户密码

密码必须符合长度不小于8

user.password=12345678
重复用户密码
user.password_confirmation=12345678
保存
user.save!
退出
quit
如果觉得我的文章对你有用,请随意赞赏