caboose-cms 0.5.184 → 0.5.185
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
|
+
MmRlYWZiMTExNDAyMjk2MmU1YmQ1ZWU2MDhhOGVkM2M4YTAzNmFmNA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGQxYzYzYWUyNzZkMDlkMDY2MjI0YjAwNmU5NzE0Mjg3NDc1YmYxZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWNiOGRlM2Y5MzMwZDRhZTBhODcwYjkzNWM0ZjRkMDY3NjE3MjZkYjljMWUy
|
10
|
+
Y2ZkODAzODU5NGU3MmVkNWFiM2UzNjZmOWVkYWUxZjY3ZjIyNzg1OWI3ZWY0
|
11
|
+
ZGE1ZmUxY2JiOWEyZTZlNjljYjdhZDE0YmJhMWFhNTNiZmYzNDU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjI0MTlhYzhjMDUzODRlOTJmMTJlNDQ2ZWI3YmE3ODEyMzU1YmMxYzNlYTNl
|
14
|
+
MmU1ZDA4OTk4YjRkNTQ2ZTQ4Y2U1MGUwN2YzNTUzNWQxYTAzNThhOTNjMjRl
|
15
|
+
NDRkNjE0MmNiMTYwNGJjZTJiNDA3NzIyZmYxOGVkNDczZmJhYzM=
|
@@ -50,7 +50,7 @@ module Caboose
|
|
50
50
|
@site = Site.find(params[:id])
|
51
51
|
|
52
52
|
# Create an admin user for the account
|
53
|
-
if User.where(:username => 'admin', :site_id => @site.id).exists?
|
53
|
+
if !User.where(:username => 'admin', :site_id => @site.id).exists?
|
54
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
|
@@ -101,7 +101,7 @@ module Caboose
|
|
101
101
|
end
|
102
102
|
|
103
103
|
# Create an admin user for the account
|
104
|
-
if User.where(:username => 'admin', :site_id => site.id).exists?
|
104
|
+
if !User.where(:username => 'admin', :site_id => site.id).exists?
|
105
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
|
data/lib/caboose/version.rb
CHANGED