devise_google_authenticator 0.3.11 → 0.3.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +2 -1
- data/app/controllers/devise/checkga_controller.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NTE5MmFhODRkZThiZDQwOWNmNzRmNWIyZTM2YTZmY2IxMzNhM2JkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Y2NlZGJjMDg4YTdiN2Q0ZDEyMzMyYTliZDY4ZTcxODZjMzkzNWQwYw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NTQ3MmM0YzE2MGU5ZDEzZDBlMGE5OTAxYzg0ZTE2ZGM1Mjc0YTUyZmE3YTUz
|
10
|
+
ZjhkYzQxMzM4NmVjNzlhOTIxNDlmZGI4ZTQyNDUzYjkxOGQzZmY0NmE4Mzk3
|
11
|
+
OGFkMWRiYzcyNDE1MjlkM2I2ZTYyMTNkZWFmNWMyNzliNzMzNjc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmZlZDgwYmM4NTRhNjQ1ZGFkZmRiMjY1MGJmNDA5YzM0YjFiOTQ0ZTU1MGM4
|
14
|
+
NDI1NDQ3MzQwMjRlZmIzZTIwMDA3MzNlNmQ5MTQ0MGNkZTFjY2FkNmQ2ZmI2
|
15
|
+
OTM5NGY2ZTJhZTM0NzhjMWYzMzZhYWJiZThmYThmNDkxZDMwZWQ=
|
data/README.rdoc
CHANGED
@@ -7,7 +7,7 @@ This is a devise[https://github.com/plataformatec/devise] extension to allow you
|
|
7
7
|
Add the gem to your Gemfile (don't forget devise too):
|
8
8
|
|
9
9
|
* gem 'devise'
|
10
|
-
* gem 'devise_google_authenticator', '0.3.
|
10
|
+
* gem 'devise_google_authenticator', '0.3.12'
|
11
11
|
|
12
12
|
Don't forget to "bundle install"
|
13
13
|
|
@@ -79,6 +79,7 @@ With this extension enabled, the following is expected behaviour:
|
|
79
79
|
The install generator also installs an english copy of a Devise Google Authenticator i18n file. This can be modified (or used to create other language versions) and is located at: config/locales/devise.google_authenticator.en.yml
|
80
80
|
|
81
81
|
== Changes
|
82
|
+
* Version 0.3.12 - Re-introduced Warden's after_authentication callback. Thanks Sunny Ng for the pull.
|
82
83
|
* Version 0.3.11 - Fixed a bug where if the Devise module was included within something else, such as Active Admin, rewriting back to the CheckGA functionality was broken. This update addresses https://github.com/AsteriskLabs/devise_google_authenticator/issues/7
|
83
84
|
* Version 0.3.10 - Added support for Mongoid ORM in addition to ActiveRecord. (Still no appropriate testing for, but I've run this on vanilla Rails 4.0.4 and Devise 3.2.3 apps)
|
84
85
|
* Version 0.3.9 - Merging fix from zhenyuchen (deprecated ActiveRecord query grammar) - also, re-tested against Rails 4.0.4 and Devise 3.2.3
|
@@ -21,6 +21,7 @@ class Devise::CheckgaController < Devise::SessionsController
|
|
21
21
|
if resource.validate_token(params[resource_name]['gauth_token'].to_i)
|
22
22
|
set_flash_message(:notice, :signed_in) if is_navigational_format?
|
23
23
|
sign_in(resource_name,resource)
|
24
|
+
warden.manager._run_callbacks(:after_set_user, resource, warden, {:event => :authentication})
|
24
25
|
respond_with resource, :location => after_sign_in_path_for(resource)
|
25
26
|
|
26
27
|
if not resource.class.ga_remembertime.nil?
|