Gitlab如何解锁用户

gitlab技巧

版本:
cat /opt/gitlab/embedded/service/gitlab-rails/VERSION
12.0.12

开启一个 Ruby on Rails console 窗口,命令:
gitlab-rails console production
通过邮箱找到用户
user = User.find_by(email: 'asdf@moneyslow.com')
以下命令为解锁:
user.unlock_access!