rose_quartz 0.9.0 → 0.9.1
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5be116f1ffb3eef528953aad741b73e5602a8cbf
|
|
4
|
+
data.tar.gz: c40a2c6f2e2a28f596cfebf9880e276f65ad0736
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 94354204bb0bfe84ef882045f6c19f5747f7bf6cb0a838ebee2e8816dfee3b1b4ea0920f1a98812119cc5d83b98f3e8e3ca3b7dba40d01924e5b30e4c4d035ae
|
|
7
|
+
data.tar.gz: 78a5addfbc1c75638c876b185e67b0f28bbc2ce4645a70149aa1f21dcda7d6d81679ca73139528bd36e9b67f48f327eac6f7ec9da5ca6ba9386c4aa5f63de0ef
|
data/CHANGELOG.md
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
## 0.9.1 (January 28, 2017)
|
|
2
|
+
|
|
3
|
+
Show the *"go to account settings and copy the backup code"*
|
|
4
|
+
notice upon enabling two-factor authentication.
|
|
5
|
+
|
|
6
|
+
Note that you can redirect users back to account settings
|
|
7
|
+
in your application by overriding [`after_update_path_for`](https://github.com/plataformatec/devise/wiki/How-To:-Customize-the-redirect-after-a-user-edits-their-profile).
|
|
8
|
+
|
|
9
|
+
## 0.9.0 (January 23, 2017)
|
|
10
|
+
|
|
11
|
+
Initial release.
|
data/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://travis-ci.org/little-bobby-tables/rose_quartz)
|
|
4
4
|
[](https://codeclimate.com/github/little-bobby-tables/rose_quartz/coverage)
|
|
5
|
+
[](https://badge.fury.io/rb/rose_quartz)
|
|
5
6
|
|
|
6
7
|
A gem that adds two-factor authentication (time-based one-time passwords) to [Devise](https://github.com/plataformatec/devise)
|
|
7
8
|
using the [rotp](https://github.com/mdp/rotp) library.
|
|
@@ -40,7 +41,7 @@ bundle install
|
|
|
40
41
|
|
|
41
42
|
Next, you need to copy initializers, locales, and add a migration:
|
|
42
43
|
```
|
|
43
|
-
rails g
|
|
44
|
+
rails g rose_quartz:install
|
|
44
45
|
```
|
|
45
46
|
|
|
46
47
|
Finally, run the migration:
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
en:
|
|
2
2
|
rose_quartz:
|
|
3
|
+
tfa_enabled: "Two-factor authentication has been enabled. Please go to account settings and copy the backup code — it is the only way to restore access to the site if you lose your device!"
|
|
3
4
|
backup_code_used: "The backup code you have used to sign in has been reset. Please go to your account settings to copy the new one or temporarily disable two-factor authentication."
|
|
4
5
|
invalid_token_when_enabling_tfa: "Invalid token. Please make sure that your device has the correct time settings."
|
|
@@ -68,6 +68,7 @@ module Devise
|
|
|
68
68
|
token_valid = authenticator.authenticate_otp!(token) rescue false
|
|
69
69
|
if token_valid
|
|
70
70
|
authenticator.save
|
|
71
|
+
flash[:alert] = I18n.t('rose_quartz.tfa_enabled')
|
|
71
72
|
else
|
|
72
73
|
resource.errors.add(:base, I18n.t('rose_quartz.invalid_token_when_enabling_tfa'))
|
|
73
74
|
end
|
data/lib/rose_quartz/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rose_quartz
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.9.
|
|
4
|
+
version: 0.9.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- little-bobby-tables
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-01-
|
|
11
|
+
date: 2017-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -159,6 +159,7 @@ extra_rdoc_files: []
|
|
|
159
159
|
files:
|
|
160
160
|
- ".gitignore"
|
|
161
161
|
- ".travis.yml"
|
|
162
|
+
- CHANGELOG.md
|
|
162
163
|
- Gemfile
|
|
163
164
|
- LICENSE
|
|
164
165
|
- README.md
|