thecore_auth_commons 3.0.9 → 3.0.11
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 +1 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eec76cb6a0c306c0bdc7277b486a1055b9e394b93d8b0568cdb4e071738ffc68
|
4
|
+
data.tar.gz: 31c8bac34e2a469a8326e9ea30a2fa33209784decb5d89b6c1483f4ecad130b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3349f5fec0ed5cc9453f85478d87b17e715b7333552afd2910e8ff14559eaf4c5adca7817a889ef6132dda6b937b500353ea12132e0b6a0000b35f93eedbcd29
|
7
|
+
data.tar.gz: 2b8e48d9241cd292a30ba5dca89c416939ebc6afb37694bca1fcb64b4471288d70b6ab9054def1d84b51253772946c9eab3c618c6ec15bb0ce950ee575ea68fe
|
data/db/seeds.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
puts "Loading ThecoreAuthCommons seeds"
|
2
|
-
email = "admin@#{ENV["BASE_DOMAIN"]}"
|
2
|
+
email = "admin@#{ENV["BASE_DOMAIN"].presence || "example.com"}"
|
3
3
|
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)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_auth_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: devise
|