has_secure_passkey 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eb45d19eccfc84223626222be2c6c6c193c6ce02c9b3f22d22ddd39c3aa7135a
|
|
4
|
+
data.tar.gz: bb51f4d0b77db0ed02bc3bf28674c105ac900f6f58355101fd97c2efac365178
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 36aaab91ef11905e61d13704801ff360fa98bc2ad14f4e62f0fa7695f61cb769126c176a92b1839a58262d59694ba69a155eca285fe828eaabd705d96fbddfea
|
|
7
|
+
data.tar.gz: 87f6f872355962e9ce1ad40ff000471392b1074ab72da9916a31f0079603bd8d0df7c1359a60f1ba9cc93469e4e448ec62fda1731e2c0f5e2ba970f3e828a1fc
|
|
@@ -25,8 +25,8 @@ module HasSecurePasskey
|
|
|
25
25
|
**options)
|
|
26
26
|
end
|
|
27
27
|
|
|
28
|
-
def button_to_passkey_login(text, path, **options)
|
|
29
|
-
button_to text, has_secure_passkey.challenges_path(path), **options
|
|
28
|
+
def button_to_passkey_login(text, path, **options, &block)
|
|
29
|
+
button_to text, has_secure_passkey.challenges_path(path), **options, &block
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
end
|
data/lib/generators/has_secure_passkey/passkeys/templates/app/views/registrations/new.html.erb.tt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<%%= form_with model: @person, url: registration_path do |f| %>
|
|
1
|
+
<%%= form_with model: @person, url: registration_path, id: "new-registration" do |f| %>
|
|
2
2
|
<%% if @person.errors.any? %>
|
|
3
3
|
<div style="color: red">
|
|
4
4
|
<h2><%%= pluralize(@person.errors.count, "error") %> prohibited this person from being saved:</h2>
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: has_secure_passkey
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nick Pezza
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2024-
|
|
10
|
+
date: 2024-11-03 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rails
|