From e535fd4fd50f02b1ec7b94db1083066d7cbf0368 Mon Sep 17 00:00:00 2001 From: Pirate Praveen Date: Mon, 1 Feb 2021 15:48:44 +0530 Subject: [PATCH] Document how to activate a new user from rails console --- debian/README.Debian | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/debian/README.Debian b/debian/README.Debian index c63bfd710c..b927867cb9 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -138,13 +138,22 @@ The steps involve dropping into rails console as gitlab user for production envi irb(main):003:0> user.password_confirmation = 'secret_pass' irb(main):004:0> user.save! +Activating a newly registered user +====================================== +The steps involve dropping into rails console as gitlab user for production environment and running the following commands. + $ gitlab-rails-console + irb(main):001:0> user = User.find_by(email: 'useraddress@domain') + irb(main):004:0> user.state='active' + irb(main):005:0> user.save + Granting an existing user admin access ====================================== The steps involve dropping into rails console as gitlab user for production environment and running the following commands. $ gitlab-rails-console irb(main):001:0> user = User.find_by(email: 'useraddress@domain') irb(main):003:0> user.admin=true - irb(main):004:0> user.save + irb(main):004:0> user.state='active' + irb(main):005:0> user.save Latest information regarding supported versions ===============================================