rose_quartz 0.9.0 → 0.9.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
  SHA1:
3
- metadata.gz: 715723d37a50e4966319aead3e66cf26168a2302
4
- data.tar.gz: cbf6814f33a0b4e797f71c13bbfe4deab4c355dc
3
+ metadata.gz: 5be116f1ffb3eef528953aad741b73e5602a8cbf
4
+ data.tar.gz: c40a2c6f2e2a28f596cfebf9880e276f65ad0736
5
5
  SHA512:
6
- metadata.gz: e4c51661f7211f4150ba8d89eb1410885d5ba01c3cd79ef72a2be5cc411f088aeb383e0f832c7692a52008d1a3698503aaa10366f1388a2a9eb998daf1128b48
7
- data.tar.gz: 43bdea2ee92e8ba06d0d0a3132f17e932bc202ae9716b64b02c70167b6b204b6a6760aa43d911404258f7ade1a6c011dfe096531fb1a0e914db7399b9c76f39e
6
+ metadata.gz: 94354204bb0bfe84ef882045f6c19f5747f7bf6cb0a838ebee2e8816dfee3b1b4ea0920f1a98812119cc5d83b98f3e8e3ca3b7dba40d01924e5b30e4c4d035ae
7
+ data.tar.gz: 78a5addfbc1c75638c876b185e67b0f28bbc2ce4645a70149aa1f21dcda7d6d81679ca73139528bd36e9b67f48f327eac6f7ec9da5ca6ba9386c4aa5f63de0ef
@@ -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
  [![Build Status](https://travis-ci.org/little-bobby-tables/rose_quartz.svg?branch=master)](https://travis-ci.org/little-bobby-tables/rose_quartz)
4
4
  [![Test Coverage](https://codeclimate.com/github/little-bobby-tables/rose_quartz/badges/coverage.svg)](https://codeclimate.com/github/little-bobby-tables/rose_quartz/coverage)
5
+ [![Gem Version](https://badge.fury.io/rb/rose_quartz.svg)](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 rose_quarts:install
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module RoseQuartz
3
- VERSION = '0.9.0'
3
+ VERSION = '0.9.1'
4
4
  end
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.0
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-23 00:00:00.000000000 Z
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