authentication-zero 2.16.21 → 2.16.23
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a209eab7a18b13d85da9a5590911a93b62bd7706e5479c31d4b336c20bdeb82
|
4
|
+
data.tar.gz: 2db4995530e23797b10116f163a814124a61b654be4237dbf9bfadbc0c7d67e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 997b3dccdf8e4293d7f0d7dba947d7c5f7e5dafd8811c605e18ba6780970cf294082c67a3a9bf626dbbf18e2fb7ff8cfbd704ff4c56feae305de08919b0b493d
|
7
|
+
data.tar.gz: d4fecb6e1214271795a536b7abd4d7cb0bcc2a055d97cef197842211b6ced3b712c48aeaf4086465af230dd1e0fe0f027451019239c8a96cec00270ffd7fea47
|
data/Gemfile.lock
CHANGED
data/lib/generators/authentication/templates/migrations/create_security_keys_migration.rb.tt
CHANGED
@@ -2,12 +2,10 @@ class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Mi
|
|
2
2
|
def change
|
3
3
|
create_table :security_keys do |t|
|
4
4
|
t.references :user, null: false, foreign_key: true
|
5
|
-
t.string :name,
|
6
|
-
t.string :external_id, null: false
|
5
|
+
t.string :name, null: false
|
6
|
+
t.string :external_id, null: false, index: { unique: true }
|
7
7
|
|
8
8
|
t.timestamps
|
9
9
|
end
|
10
|
-
|
11
|
-
add_index :security_keys, :external_id, unique: true
|
12
10
|
end
|
13
11
|
end
|
@@ -1,27 +1,22 @@
|
|
1
1
|
class <%= migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>]
|
2
2
|
def change
|
3
3
|
create_table :users do |t|
|
4
|
-
t.string :email, null: false
|
4
|
+
t.string :email, null: false, index: { unique: true }
|
5
5
|
t.string :password_digest, null: false
|
6
6
|
|
7
7
|
t.boolean :verified, null: false, default: false
|
8
8
|
<%- if two_factor? %>
|
9
9
|
t.string :otp_secret
|
10
10
|
<%- end -%>
|
11
|
+
<%- if webauthn? %>
|
12
|
+
t.string :webauthn_id
|
13
|
+
<%- end -%>
|
11
14
|
<%- if omniauthable? %>
|
12
15
|
t.string :provider
|
13
16
|
t.string :uid
|
14
17
|
<%- end -%>
|
15
|
-
<%- if webauthn? %>
|
16
|
-
t.string :webauthn_id
|
17
|
-
<%- end -%>
|
18
18
|
|
19
19
|
t.timestamps
|
20
20
|
end
|
21
|
-
|
22
|
-
add_index :users, :email, unique: true
|
23
|
-
<%- if omniauthable? -%>
|
24
|
-
add_index :users, [:provider, :uid], unique: true
|
25
|
-
<%- end -%>
|
26
21
|
end
|
27
22
|
end
|