thecore_auth_commons 3.0.9 → 3.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/locales/it.thecore_auth_commons.yml +0 -1
- data/db/seeds.rb +0 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da21829f96bdeba3dc9336fdce604b5dedb850113c3f0b6c526bb18ffa9222f8
|
4
|
+
data.tar.gz: 052bbf5d6913b0ebfdd5dab4ab9de5b3384c5b5066cbe1810c66a59de16bef85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6222dff7f14dca92bc168b03fbde4ea2131d092e9a9d21d3d234d5664092073cc84e98ab8621cc23895da265c03af923aa8b3c28fd6344cc9757baaf54a86dc3
|
7
|
+
data.tar.gz: 30d52a0f47cf832e32954689c423d8cdd871eeb004051271d25e207e1d795ab99f5112cf6edaa581de40da3dfab0eb18935ca3bd5df71d9469006078908d8a73
|
data/db/seeds.rb
CHANGED
@@ -4,7 +4,6 @@ psswd = ENV["ADMIN_PASSWORD"].presence || "changeme"
|
|
4
4
|
|
5
5
|
unless User.where(admin: true).exists?
|
6
6
|
u = User.find_or_initialize_by(email: email)
|
7
|
-
u.username = "Administrator" if u.respond_to? :username=
|
8
7
|
u.password = u.password_confirmation = psswd
|
9
8
|
u.admin = true
|
10
9
|
u.save(validate: false)
|