caboose-cms 0.5.183 → 0.5.184
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/controllers/caboose/sites_controller.rb +2 -2
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
N2JmMTlhNjNlMDNmZThlYzhmODIwY2NhNjg0MTJlNTM0MGNkODM3NQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YzBlMzdlZmM3ZmRmMWRkYTlmMjRjOTg0MDkxNTUxMGIwZjc2ZDhmMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MTJlMGIwZWZkOTE1MTI2OThhMzNmMzE0NTFhZDZkY2EwZDNlYTA5YzBjYTZj
|
10
|
+
MmU2NDgxNDRkNWFiNmIwNTM2ZTJkNTM3YjIyNmFhYzUzMzVhYzczZTFkN2Nk
|
11
|
+
YjVjNDgyOWRiYzI0YzQwMWQwYTljY2FjOWZkYmMwMWM1ODczZTU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGEwNTVmY2MzOWNhYzc1NDFiYmU5MmJlZjU2ZDkzZWJiODIwNjhkMzQ3ZDc0
|
14
|
+
ODEwZmE1NjBhNDdjNTg0MTEwODVkZGNjYmJkMTE2ZGNmNzg1M2MyYzNjZDZl
|
15
|
+
NjQzZjIwZjc1MjY1MDA3Yjc1NDIwYWNiOTI5ODQ5YmZlNjc4Y2U=
|
@@ -51,7 +51,7 @@ module Caboose
|
|
51
51
|
|
52
52
|
# Create an admin user for the account
|
53
53
|
if User.where(:username => 'admin', :site_id => @site.id).exists?
|
54
|
-
admin_user = User.create(:username => 'admin', :site_id => @site.id)
|
54
|
+
admin_user = User.create(:username => 'admin', :site_id => @site.id, :password => Digest::SHA1.hexdigest(Caboose::salt + 'caboose'))
|
55
55
|
admin_role = Role.where(:name => 'Admin').first
|
56
56
|
if admin_role
|
57
57
|
RoleMembership.create(:user_id => admin_user.id, :role_id => admin_role.id)
|
@@ -102,7 +102,7 @@ module Caboose
|
|
102
102
|
|
103
103
|
# Create an admin user for the account
|
104
104
|
if User.where(:username => 'admin', :site_id => site.id).exists?
|
105
|
-
admin_user = User.create(:username => 'admin', :site_id => site.id)
|
105
|
+
admin_user = User.create(:username => 'admin', :site_id => site.id, :password => Digest::SHA1.hexdigest(Caboose::salt + 'caboose'))
|
106
106
|
admin_role = Role.where(:name => 'Admin').first
|
107
107
|
if admin_role
|
108
108
|
RoleMembership.create(:user_id => admin_user.id, :role_id => admin_role.id)
|
data/lib/caboose/version.rb
CHANGED