cookie_crypt 1.2.0 → 1.2.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: e59ba49d3dec951ad51967ff41af53b1b5e584d4
|
|
4
|
+
data.tar.gz: 6e60ab8be296977502e97e2b93a822d9d471a959
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 38f7532e45c28665cc84347e23dedad580e9c63eba07111337b912621720fb529adad73bf95165ef853532d6e43e61cb5ac07ae1b3c5a83cb1c31062a3e2031a
|
|
7
|
+
data.tar.gz: 705a9e5d8fe1720b78ff37221f10f3685a497b49ac52888acef6a1886240b24f671b40d8a3426adaabc0f579d3bde7044bf9cacea10228075012843619d1091b
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<% h = Hash.class_eval(@user.security_hash) %>
|
|
2
|
+
|
|
3
|
+
<h3> Are you on a public computer or a computer you most likely won't be using again? </h3>
|
|
4
|
+
|
|
5
|
+
<%= link_to "Public", "#{@request_path}?bind_public_form=true", class: 'button', remote: true %>
|
|
6
|
+
|
|
7
|
+
<br></br>
|
|
8
|
+
|
|
9
|
+
<% @questions.each do |q| %>
|
|
10
|
+
|
|
11
|
+
<h2><%="#{q}"%></h2>
|
|
12
|
+
|
|
13
|
+
<%=text_field_tag h.key(q).gsub('question','answer'), nil, size: 50, name: "security_answers[#{h.key(q).gsub('question','answer')}]" %>
|
|
14
|
+
|
|
15
|
+
<br></br>
|
|
16
|
+
|
|
17
|
+
<% end %>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<% h = Hash.class_eval(@user.security_hash) %>
|
|
2
|
+
|
|
3
|
+
<h3> Are you on a private computer or a computer will be using again? </h3>
|
|
4
|
+
|
|
5
|
+
<%= link_to "Private", "#{request.fullpath}?bind_private_form=true", class: 'button', remote: true %>
|
|
6
|
+
|
|
7
|
+
<br></br>
|
|
8
|
+
|
|
9
|
+
<% @questions.each do |q| %>
|
|
10
|
+
|
|
11
|
+
<h2><%="#{q}"%></h2>
|
|
12
|
+
|
|
13
|
+
<%= password_field_tag h.key(q).gsub('question','answer'), nil, size: 50, name: "security_answers[#{h.key(q).gsub('question','answer')}]" %>
|
|
14
|
+
|
|
15
|
+
<br></br>
|
|
16
|
+
|
|
17
|
+
<% end %>
|
|
18
|
+
|
|
19
|
+
<%= hidden_field_tag "do_not_save_cookie" %>
|
|
20
|
+
|
|
21
|
+
<h3>After hitting submit you will only be authenticated for this session.</h3>
|
data/cookie_crypt.gemspec
CHANGED
|
@@ -29,19 +29,21 @@ Gem::Specification.new do |s|
|
|
|
29
29
|
|
|
30
30
|
s.add_development_dependency 'bundler'
|
|
31
31
|
s.license = 'MIT'
|
|
32
|
-
s.post_install_message = <<END_DESC
|
|
33
|
-
|
|
34
|
-
********************************************
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
to
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
32
|
+
# s.post_install_message = <<END_DESC
|
|
33
|
+
#
|
|
34
|
+
# ********************************************
|
|
35
|
+
#
|
|
36
|
+
# 1.2 Introduces no new major changes. Running the generator again will not be necessary.
|
|
37
|
+
#
|
|
38
|
+
# A major revision was made with the 1.1 update for CookieCrypt.
|
|
39
|
+
#
|
|
40
|
+
# You will need to run 'bundle exec rails g cookie_crypt MODEL' again
|
|
41
|
+
#
|
|
42
|
+
# to start the upgrade process from 1.0 to 1.1.
|
|
43
|
+
#
|
|
44
|
+
# For more information check the homepage at 'https://github.com/loualrid/CookieCrypt'
|
|
45
|
+
#
|
|
46
|
+
# ********************************************
|
|
47
|
+
#
|
|
48
|
+
#END_DESC
|
|
47
49
|
end
|
data/lib/cookie_crypt/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cookie_crypt
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitrii Golub
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-05-
|
|
12
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|
|
@@ -85,6 +85,8 @@ files:
|
|
|
85
85
|
- Rakefile
|
|
86
86
|
- app/controllers/devise/cookie_crypt_controller.rb
|
|
87
87
|
- app/views/devise/cookie_crypt/_extra_fields.html.erb
|
|
88
|
+
- app/views/devise/cookie_crypt/_private_login_questions.html.erb
|
|
89
|
+
- app/views/devise/cookie_crypt/_public_login_questions.html.erb
|
|
88
90
|
- app/views/devise/cookie_crypt/max_login_attempts_reached.html.erb
|
|
89
91
|
- app/views/devise/cookie_crypt/show.html.erb
|
|
90
92
|
- app/views/devise/cookie_crypt/show.js.erb
|
|
@@ -109,20 +111,7 @@ homepage: https://github.com/loualrid/CookieCrypt
|
|
|
109
111
|
licenses:
|
|
110
112
|
- MIT
|
|
111
113
|
metadata: {}
|
|
112
|
-
post_install_message:
|
|
113
|
-
|
|
114
|
-
********************************************
|
|
115
|
-
|
|
116
|
-
A major revision was made with the 1.1 update for CookieCrypt.
|
|
117
|
-
|
|
118
|
-
You will need to run 'bundle exec rails g cookie_crypt MODEL' again
|
|
119
|
-
|
|
120
|
-
to start the upgrade process from 1.0 to 1.1.
|
|
121
|
-
|
|
122
|
-
For more information check the homepage at 'https://github.com/loualrid/CookieCrypt'
|
|
123
|
-
|
|
124
|
-
********************************************
|
|
125
|
-
|
|
114
|
+
post_install_message:
|
|
126
115
|
rdoc_options: []
|
|
127
116
|
require_paths:
|
|
128
117
|
- lib
|