devise_fido_usf 0.1.3 → 0.1.4
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3ba8b5f9da81e7adfd167271c708f633240c684c
|
4
|
+
data.tar.gz: 67143d857201989af843af600a68e22a428cf1ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f934627b52cb2fc4344ddd00d1840813ebf1c6557c0e06c5a05a519400b2dcc87e5dc47af59857608a45a06dc7f2b6af61205b6af2f8af8951df93f20c1c037b
|
7
|
+
data.tar.gz: a73ec3de59d66997eead21bac5573abba58de08b7ddfb5e640cd0c795325baaf086f976c2f6c8713fd9867ce3fc72ff5b97f3d969e19b1393a24425b44cd6bfe
|
@@ -57,4 +57,19 @@ class Devise::FidoUsfRegistrationsController < ApplicationController
|
|
57
57
|
format.html { redirect_to user_fido_usf_registration_url }
|
58
58
|
end
|
59
59
|
end
|
60
|
+
|
61
|
+
def update
|
62
|
+
device = current_user.fido_usf_devices.find(params[:id])
|
63
|
+
device.update!(fido_usf_params)
|
64
|
+
respond_to do |format|
|
65
|
+
format.js
|
66
|
+
format.html { redirect_to user_fido_usf_registration_url }
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
private
|
71
|
+
def fido_usf_params
|
72
|
+
# Only allow to update the name
|
73
|
+
params.require(:fido_usf_device).permit(:name)
|
74
|
+
end
|
60
75
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module ActionDispatch::Routing
|
2
2
|
class Mapper
|
3
3
|
def devise_fido_usf_registration(mapping, controllers)
|
4
|
-
resource :fido_usf_registration, :only => [:show, :new, :create, :destroy],
|
4
|
+
resource :fido_usf_registration, :only => [:show, :new, :create, :update, :destroy],
|
5
5
|
:path => mapping.path_names[:fido_usf_registration], :controller => controllers[:fido_usf_registrations] do
|
6
6
|
end
|
7
7
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_fido_usf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- H. Gregor Molter
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-09-
|
11
|
+
date: 2017-09-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|