devise-authy 2.2.0 → 2.2.1

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: e9332df09a8a1b3e1a71ff775f2cccc75c573123eccb8a6830454cdc3ef3834d
4
- data.tar.gz: a0e4f00b59ece3eefe9fee9c04c51227216e13f241ac24afe94c4ec361416443
3
+ metadata.gz: 9157eb5b102b0297c975ea71d190f500e0bf6dc5831717df0ca5695b9f0af13e
4
+ data.tar.gz: 7582bfb6b18310dd7697a808460ac87282d1c2e3fc9fd09838c431d69315d655
5
5
  SHA512:
6
- metadata.gz: 3d00cb1eb54d0169277b2e514431bb121f8c5e2dc6a565e07786a4866a29904b301a3730cdbff201f48d1ba5afb4c8b10249b75e9c8ab45da8a0022b9b1f64f9
7
- data.tar.gz: 54596845d7b20034aa433497281d74135886f59828e9ae8026ae9fc43f0cfe2b4874cd90c4d69f8295ff76bc02ac7eaadb077fd53d1281354f7a3aa113dac65e
6
+ metadata.gz: 36cc430cf270f535c3068c15668a398bbc9a297d345bb0c659db49ef5fb9febb43761abcf118c340476797a8c7150de37cb6ddcd0caf14b408cdecb94ab856f6
7
+ data.tar.gz: 856434e4038f931c25f84ddac5281f0b5f762e4a6d9d27a355362822342c255bea58ee6b087a52d912802b654436ef7505efc6a310375cafb67bdfafa5d800e1
@@ -9,6 +9,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
 
10
10
  ...
11
11
 
12
+ ## [2.2.1] - 2020-10-13
13
+
14
+ ### Fixed
15
+
16
+ - If the app offers a QR code scan and user fails to verify authy installation, the QR code wasn't shown again. Fixed in (#149)
17
+
12
18
  ## [2.2.0] - 2020-06-04
13
19
 
14
20
  ### Fixed
data/README.md CHANGED
@@ -60,20 +60,24 @@ You can add devise_authy to your user model in two ways.
60
60
 
61
61
  #### With the generator
62
62
 
63
- This is the easiest way and is recommended. Run the following command:
63
+ Run the following command:
64
64
 
65
65
  ```bash
66
66
  rails g devise_authy [MODEL_NAME]
67
67
  ```
68
68
 
69
+ To support account locking (recommended), you must add `:authy_lockable` to the `devise :authy_authenticatable, ...` configuration in your model as this is not yet supported by the generator.
70
+
69
71
  #### Manually
70
72
 
71
- Add `:authy_authenticatable` to the `devise` options in your Devise user model:
73
+ Add `:authy_authenticatable` and `:authy_lockable` to the `devise` options in your Devise user model:
72
74
 
73
75
  ```ruby
74
- devise :authy_authenticatable, :database_authenticatable
76
+ devise :authy_authenticatable, :authy_lockable, :database_authenticatable, :lockable
75
77
  ```
76
78
 
79
+ (Note, `:authy_lockable` is optional but recommended. It should be used with Devise's own `:lockable` module).
80
+
77
81
  Also add a new migration. For example, if you are adding to the `User` model, use this migration:
78
82
 
79
83
  ```ruby
@@ -131,6 +131,10 @@ class Devise::DeviseAuthyController < DeviseController
131
131
  set_flash_message(:notice, :enabled)
132
132
  redirect_to after_authy_verified_path_for(resource)
133
133
  else
134
+ if resource_class.authy_enable_qr_code
135
+ response = Authy::API.request_qr_code(id: resource.authy_id)
136
+ @authy_qr_code = response.qr_code
137
+ end
134
138
  handle_invalid_token :verify_authy_installation, :not_enabled
135
139
  end
136
140
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DeviseAuthy
4
- VERSION = '2.2.0'
5
- end
4
+ VERSION = '2.2.1'
5
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise-authy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authy Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-04 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise
@@ -334,7 +334,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
334
334
  - !ruby/object:Gem::Version
335
335
  version: '0'
336
336
  requirements: []
337
- rubygems_version: 3.0.1
337
+ rubygems_version: 3.0.3
338
338
  signing_key:
339
339
  specification_version: 4
340
340
  summary: Authy plugin for Devise.