devise_google_authenticator 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/README.rdoc +12 -1
  2. metadata +12 -12
@@ -10,13 +10,14 @@ This is a devise[https://github.com/plataformatec/devise] extension to allow you
10
10
  * Version 0.3.2 - Updated to include support for Devise 2.0.0 and above (no longer supports 1.5.3 or lower), you'll need version 0.3.1 to use older Devise
11
11
  * Version 0.3.3 - Updated some of the redirect methods to proper align with Devise 2.1.0. Also tidied up some of the test routines to proper replicate Devise 2.1.0
12
12
  * Version 0.3.4 - Updated test cases to function properly, and tested working with Devise 2.2 (up to at least Devise 2.2.4)
13
+ * Version 0.3.5 - Updated README for Rails apps with existing users. (Thanks Jon Collier)
13
14
 
14
15
  == Installation
15
16
 
16
17
  Add the gem to your Gemfile (don't forget devise too):
17
18
 
18
19
  * gem 'devise'
19
- * gem 'devise_google_authenticator', '0.3.4'
20
+ * gem 'devise_google_authenticator', '0.3.5'
20
21
 
21
22
  Don't forget to "bundle install"
22
23
 
@@ -50,6 +51,16 @@ Don't forget to migrate:
50
51
 
51
52
  * rake db:migrate
52
53
 
54
+ === Installation With Existing Users
55
+
56
+ After the above steps have been performed, you'll need to generate secrets for each user:
57
+ User.where(:gauth_secret => nil).each do |user|
58
+ user.send(:assign_auth_secret)
59
+ user.save
60
+ end
61
+ By default, users won't need to perform two-factor authentication (gauth_enabled='f'). By visiting /MODEL/displayqr (eg: /users/displayqr)
62
+ and submitting the form, two-factor authentication will then be turned on (gauth_enabled=1) and required for subsequent logins.
63
+
53
64
  == Configuration Options
54
65
 
55
66
  The install generator adds some options to the end of your Devise config file (config/initializers/devise.rb)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise_google_authenticator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-26 00:00:00.000000000Z
12
+ date: 2013-07-02 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &70198724260440 !ruby/object:Gem::Requirement
16
+ requirement: &70157905337060 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.3.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70198724260440
24
+ version_requirements: *70157905337060
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: railties
27
- requirement: &70198724259500 !ruby/object:Gem::Requirement
27
+ requirement: &70157905334780 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70198724259500
35
+ version_requirements: *70157905334780
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: actionmailer
38
- requirement: &70198724259060 !ruby/object:Gem::Requirement
38
+ requirement: &70157905333300 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70198724259060
46
+ version_requirements: *70157905333300
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: devise
49
- requirement: &70198724258600 !ruby/object:Gem::Requirement
49
+ requirement: &70157905331920 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.2.0
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70198724258600
57
+ version_requirements: *70157905331920
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rotp
60
- requirement: &70198724257880 !ruby/object:Gem::Requirement
60
+ requirement: &70157905330100 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,7 +65,7 @@ dependencies:
65
65
  version: 1.4.0
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70198724257880
68
+ version_requirements: *70157905330100
69
69
  description: Devise Google Authenticator Extension, for adding Google's OTP to your
70
70
  Rails apps!
71
71
  email: xntrik@gmail.com