devise-authy 1.4.0 → 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/VERSION +1 -1
- data/app/assets/stylesheets/devise_authy.css +4 -4
- data/app/assets/stylesheets/devise_authy.sass +18 -17
- data/authy-devise-demo/Gemfile.lock +1 -1
- data/devise-authy.gemspec +2 -2
- data/lib/devise-authy/controllers/helpers.rb +2 -1
- data/lib/devise-authy/controllers/view_helpers.rb +4 -4
- data/spec/rails-app/Gemfile.lock +1 -1
- metadata +3 -3
data/Gemfile.lock
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.5.0
|
@@ -4,7 +4,7 @@
|
|
4
4
|
width: 350px;
|
5
5
|
}
|
6
6
|
|
7
|
-
legend {
|
7
|
+
.authy-form legend {
|
8
8
|
display: block;
|
9
9
|
width: 100%;
|
10
10
|
padding: 0;
|
@@ -15,9 +15,9 @@ legend {
|
|
15
15
|
border-bottom: 1px solid #E5E5E5;
|
16
16
|
}
|
17
17
|
|
18
|
-
label,
|
19
|
-
input,
|
20
|
-
button {
|
18
|
+
.authy-form label,
|
19
|
+
.authy-form input,
|
20
|
+
.authy-form button {
|
21
21
|
font-size: 14px;
|
22
22
|
font-weight: normal;
|
23
23
|
line-height: 20px;
|
@@ -3,21 +3,22 @@
|
|
3
3
|
margin-right: auto
|
4
4
|
width: 350px
|
5
5
|
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
6
|
+
.authy-form
|
7
|
+
legend
|
8
|
+
display: block
|
9
|
+
width: 100%
|
10
|
+
padding: 0
|
11
|
+
margin-bottom: 20px
|
12
|
+
font-size: 21px
|
13
|
+
line-height: 40px
|
14
|
+
color: #333
|
15
|
+
border-bottom: 1px solid #E5E5E5
|
15
16
|
|
16
|
-
label,
|
17
|
-
input,
|
18
|
-
button
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
label,
|
18
|
+
input,
|
19
|
+
button
|
20
|
+
font-size: 14px
|
21
|
+
font-weight: normal
|
22
|
+
line-height: 20px
|
23
|
+
padding: 8px
|
24
|
+
margin: 8px
|
data/devise-authy.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "devise-authy"
|
8
|
-
s.version = "1.
|
8
|
+
s.version = "1.5.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Authy Inc."]
|
12
|
-
s.date = "
|
12
|
+
s.date = "2014-01-07"
|
13
13
|
s.description = "Authy plugin for Devise"
|
14
14
|
s.email = "support@authy.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -43,6 +43,7 @@ module DeviseAuthy
|
|
43
43
|
id = warden.session(resource_name)[:id]
|
44
44
|
|
45
45
|
remember_me = (params.fetch(resource_name, {})[:remember_me].to_s == "1")
|
46
|
+
return_to = session["#{resource_name}_return_to"]
|
46
47
|
warden.logout
|
47
48
|
warden.reset_session! # make sure the session resetted
|
48
49
|
|
@@ -50,7 +51,7 @@ module DeviseAuthy
|
|
50
51
|
# this is safe to put in the session because the cookie is signed
|
51
52
|
session["#{resource_name}_password_checked"] = true
|
52
53
|
session["#{resource_name}_remember_me"] = remember_me
|
53
|
-
session["#{resource_name}_return_to"] =
|
54
|
+
session["#{resource_name}_return_to"] = return_to if return_to
|
54
55
|
|
55
56
|
redirect_to verify_authy_path_for(resource_name)
|
56
57
|
return
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module DeviseAuthy
|
2
2
|
module Views
|
3
3
|
module Helpers
|
4
|
-
|
4
|
+
|
5
5
|
def authy_request_sms_link
|
6
6
|
link_to(
|
7
7
|
I18n.t('request_sms', {:scope => 'devise'}),
|
@@ -13,20 +13,20 @@ module DeviseAuthy
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def verify_authy_form(&block)
|
16
|
-
form_tag([resource_name, :verify_authy],
|
16
|
+
form_tag([resource_name, :verify_authy], :id => 'devise_authy', :class => 'authy-form', :method => :post) do
|
17
17
|
buffer = hidden_field_tag(:"#{resource_name}_id", @resource.id)
|
18
18
|
buffer << capture(&block)
|
19
19
|
end
|
20
20
|
end
|
21
21
|
|
22
22
|
def enable_authy_form(&block)
|
23
|
-
form_tag([resource_name, :enable_authy], :method => :post) do
|
23
|
+
form_tag([resource_name, :enable_authy], :class => 'authy-form', :method => :post) do
|
24
24
|
capture(&block)
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
28
|
def verify_authy_installation_form(&block)
|
29
|
-
form_tag([resource_name, :verify_authy_installation], :method => :post) do
|
29
|
+
form_tag([resource_name, :verify_authy_installation], :class => 'authy-form', :method => :post) do
|
30
30
|
capture(&block)
|
31
31
|
end
|
32
32
|
end
|
data/spec/rails-app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: devise-authy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.
|
5
|
+
version: 1.5.0
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Authy Inc.
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-01-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -373,7 +373,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
373
373
|
- !ruby/object:Gem::Version
|
374
374
|
segments:
|
375
375
|
- 0
|
376
|
-
hash:
|
376
|
+
hash: 105146278844073632
|
377
377
|
version: '0'
|
378
378
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
379
379
|
none: false
|