gitlab rails

Recon Gitlab CE using rails

# find the user:
user = User.find(1)
user = User.find_by(email: "admin@example.com")
user = User.find_by(username: "root")
user = User.find_by(name: "Administrator")
user = User.find_by(admin: true)

# pretty_print parameters
pp u.attributes

# change the password
user.password = 'kashz'
user.password_confirmation = 'kashz'

# and save
user.save

Reference

Last updated