From 574396e03cad53519766602bb9fe6841c6f992b4 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 29 Mar 2013 16:30:22 +0400 Subject: [PATCH 1/4] create admin user at first start of server --- db/seeds.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 25fcb79af..1a0a9c079 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -7,4 +7,7 @@ end %w(rosa_system iso_worker_1 file_store).each do |uname| user = User.new uname: uname, email: "#{uname}@rosalinux.ru", password: SecureRandom.base64 user.confirmed_at, user.role = Time.now.utc, 'system'; user.save -end \ No newline at end of file +end + +admin = User.new uname: 'admin', email: 'admin@rosalinux.ru', password: 'qwerty' +admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save \ No newline at end of file From 0dfb3bd00fb58764002fd375a99529aaaae15205 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Fri, 29 Mar 2013 16:38:06 +0400 Subject: [PATCH 2/4] update uname of admin user --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 1a0a9c079..3150a8b4e 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -9,5 +9,5 @@ end user.confirmed_at, user.role = Time.now.utc, 'system'; user.save end -admin = User.new uname: 'admin', email: 'admin@rosalinux.ru', password: 'qwerty' +admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'qwerty' admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save \ No newline at end of file From c30808b733e0e91413af90c1818b07cdcd7459dc Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 1 Apr 2013 18:49:57 +0400 Subject: [PATCH 3/4] update password for admin_user --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 3150a8b4e..3678284fc 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -9,5 +9,5 @@ end user.confirmed_at, user.role = Time.now.utc, 'system'; user.save end -admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'qwerty' +admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'ABFrulez!!!' admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save \ No newline at end of file From 7e11e16fd579fa580d652e3f844f5830642171d4 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Mon, 1 Apr 2013 23:59:57 +0400 Subject: [PATCH 4/4] update password for admin_user --- db/seeds.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/seeds.rb b/db/seeds.rb index 3678284fc..606290ce3 100644 --- a/db/seeds.rb +++ b/db/seeds.rb @@ -9,5 +9,5 @@ end user.confirmed_at, user.role = Time.now.utc, 'system'; user.save end -admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'ABFrulez!!!' +admin = User.new uname: 'admin_user', email: 'admin_user@rosalinux.ru', password: 'admin_user' admin.confirmed_at, admin.role = Time.now.utc, 'admin'; admin.save \ No newline at end of file