From b5b53e81acc3b9336cb13a236a07abe373980d8e Mon Sep 17 00:00:00 2001 From: Randall Mason Date: Tue, 16 Oct 2012 14:02:38 +0300 Subject: [PATCH] Update db/fixtures/production/001_admin.rb --- db/fixtures/production/001_admin.rb | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/db/fixtures/production/001_admin.rb b/db/fixtures/production/001_admin.rb index cfff6bf8bc2..fcaacf81075 100644 --- a/db/fixtures/production/001_admin.rb +++ b/db/fixtures/production/001_admin.rb @@ -1,8 +1,12 @@ +require 'securerandom' + +password = SecureRandom.urlsafe_base64(16) + admin = User.create( :email => "admin@local.host", :name => "Administrator", - :password => "5iveL!fe", - :password_confirmation => "5iveL!fe" + :password => password, + :password_confirmation => password ) admin.projects_limit = 10000 @@ -14,6 +18,6 @@ puts %q[ Administrator account created: login.........admin@local.host -password......5iveL!fe -] +password......] + password + end -- GitLab