Commit 57fddea8 authored by Ciro Santilli's avatar Ciro Santilli

Add users with predictable username and password

to development seed.
parent 174c00cf
...@@ -13,4 +13,20 @@ Gitlab::Seeder.quiet do ...@@ -13,4 +13,20 @@ Gitlab::Seeder.quiet do
print 'F' print 'F'
end end
end end
(1..5).each do |i|
begin
User.seed(:id, [
id: i + 10,
username: "user#{i}",
name: "User #{i}",
email: "user#{i}@example.com",
confirmed_at: DateTime.now,
password: '12345678'
])
print '.'
rescue ActiveRecord::RecordNotSaved
print 'F'
end
end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment