orthodox 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -0
  3. data/README.md +3 -7
  4. data/dummy/.ruby-version +1 -1
  5. data/dummy/Gemfile +2 -2
  6. data/dummy/Gemfile.lock +111 -113
  7. data/lib/generators/authentication/templates/controllers/concerns/authentication.rb.erb +24 -24
  8. data/lib/generators/authentication/templates/controllers/sessions_controller.rb.erb +4 -4
  9. data/lib/generators/authentication/templates/controllers/tfa_sessions_controller.rb.erb +2 -2
  10. data/lib/generators/authentication/templates/controllers/tfas_controller.rb.erb +2 -2
  11. data/lib/generators/authentication/templates/helpers/otp_credentials_helper.rb +2 -2
  12. data/lib/generators/authentication/templates/javascript/tfa_forms.js +3 -5
  13. data/lib/generators/authentication/templates/models/concerns/authenticateable.rb +2 -2
  14. data/lib/generators/authentication/templates/models/concerns/otpable.rb +2 -2
  15. data/lib/generators/authentication/templates/models/concerns/password_resetable.rb +2 -2
  16. data/lib/generators/authentication/templates/models/otp_credential.rb.erb +2 -2
  17. data/lib/generators/authentication/templates/models/password_reset_token.rb +2 -2
  18. data/lib/generators/authentication/templates/models/session.rb.erb +2 -2
  19. data/lib/generators/authentication/templates/models/tfa_session.rb +2 -2
  20. data/lib/generators/authentication/templates/spec/models/otp_credential_spec.rb +2 -2
  21. data/lib/generators/authentication/templates/spec/models/password_reset_token_spec.rb +2 -2
  22. data/lib/generators/authentication/templates/spec/models/session_spec.rb.erb +10 -11
  23. data/lib/generators/authentication/templates/spec/models/tfa_session_spec.rb.erb +35 -36
  24. data/lib/generators/authentication/templates/spec/support/authentication_helpers.rb +2 -2
  25. data/lib/generators/authentication/templates/spec/system/authentication_spec.rb.erb +2 -2
  26. data/lib/generators/authentication/templates/spec/system/password_resets_spec.rb.erb +2 -2
  27. data/lib/generators/authentication/templates/spec/system/tfa_authentication_spec.rb.erb +2 -2
  28. data/lib/orthodox/version.rb +1 -1
  29. data/orthodox.gemspec +1 -2
  30. metadata +6 -52
  31. data/docs/Authenticateable/ClassMethods.html +0 -105
  32. data/docs/Authenticateable.html +0 -246
  33. data/docs/AuthenticationGenerator.html +0 -1335
  34. data/docs/AuthenticationHelpers.html +0 -194
  35. data/docs/BaseControllerGenerator.html +0 -247
  36. data/docs/CoffeescriptGenerator.html +0 -495
  37. data/docs/ControllerGenerator.html +0 -855
  38. data/docs/LayoutHelperGenerator.html +0 -397
  39. data/docs/Orthodox/Railtie.html +0 -124
  40. data/docs/Orthodox.html +0 -133
  41. data/docs/OtpCredentialsHelper.html +0 -298
  42. data/docs/Otpable.html +0 -267
  43. data/docs/PasswordResetToken.html +0 -324
  44. data/docs/PasswordResetable.html +0 -193
  45. data/docs/SassGenerator.html +0 -549
  46. data/docs/TfaSession.html +0 -476
  47. data/docs/TwoFactorAuthentication/ClassMethods.html +0 -222
  48. data/docs/TwoFactorAuthentication.html +0 -121
  49. data/docs/_config.yml +0 -1
  50. data/docs/_index.html +0 -265
  51. data/docs/class_list.html +0 -51
  52. data/docs/css/common.css +0 -1
  53. data/docs/css/full_list.css +0 -58
  54. data/docs/css/style.css +0 -496
  55. data/docs/file.README.html +0 -311
  56. data/docs/file_list.html +0 -56
  57. data/docs/frames.html +0 -17
  58. data/docs/index.html +0 -311
  59. data/docs/js/app.js +0 -314
  60. data/docs/js/full_list.js +0 -216
  61. data/docs/js/jquery.js +0 -4
  62. data/docs/method_list.html +0 -555
  63. data/docs/top-level-namespace.html +0 -112
@@ -1,324 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: PasswordResetToken
8
-
9
- &mdash; Orthodox
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "PasswordResetToken";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (P)</a> &raquo;
40
-
41
-
42
- <span class="title">PasswordResetToken</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: PasswordResetToken
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">ApplicationRecord</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">ApplicationRecord</li>
78
-
79
- <li class="next">PasswordResetToken</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/generators/authentication/templates/models/password_reset_token.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
- <p>Model for managing password reset tokens</p>
107
-
108
- <p>Automatically generated by the orthodox gem (<a href="https://github.com/katanacode/orthodox">https://github.com/katanacode/orthodox</a>)
109
- (c) Copyright 2019 Katana Code Ltd. All Rights Reserved. </p>
110
-
111
- <p>== Schema Information</p>
112
-
113
- <p>Table name: password_reset_tokens</p>
114
-
115
- <p>id :bigint not null, primary key
116
- expires_at :datetime
117
- resetable_type :string not null
118
- secret :string
119
- created_at :datetime not null
120
- updated_at :datetime not null
121
- resetable_id :bigint not null</p>
122
-
123
- <p>Indexes</p>
124
-
125
- <p>index_password_reset_tokens_on_expires_at (expires_at)
126
- index_password_reset_tokens_on_resetable_type_and_resetable_id (resetable_type,resetable_id)
127
- index_password_reset_tokens_on_secret (secret) UNIQUE</p>
128
-
129
-
130
- </div>
131
- </div>
132
- <div class="tags">
133
-
134
-
135
- </div>
136
-
137
- <h2>
138
- Constant Summary
139
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
140
- </h2>
141
-
142
- <dl class="constants">
143
-
144
- <dt id="EXPIRES_AFTER-constant" class="">EXPIRES_AFTER =
145
- <div class="docstring">
146
- <div class="discussion">
147
- <p>How long should password reset links be valid for?</p>
148
-
149
-
150
- </div>
151
- </div>
152
- <div class="tags">
153
-
154
-
155
- </div>
156
- </dt>
157
- <dd><pre class="code"><span class='int'>15</span><span class='period'>.</span><span class='id identifier rubyid_minutes'>minutes</span></pre></dd>
158
-
159
- </dl>
160
-
161
-
162
-
163
-
164
-
165
-
166
-
167
-
168
-
169
- <h2>
170
- Instance Method Summary
171
- <small><a href="#" class="summary_toggle">collapse</a></small>
172
- </h2>
173
-
174
- <ul class="summary">
175
-
176
- <li class="public ">
177
- <span class="summary_signature">
178
-
179
- <a href="#expired%3F-instance_method" title="#expired? (instance method)">#<strong>expired?</strong> &#x21d2; Boolean </a>
180
-
181
-
182
-
183
- </span>
184
-
185
-
186
-
187
-
188
-
189
-
190
-
191
-
192
-
193
- <span class="summary_desc"><div class='inline'></div></span>
194
-
195
- </li>
196
-
197
-
198
- <li class="private ">
199
- <span class="summary_signature">
200
-
201
- <a href="#set_expires_at-instance_method" title="#set_expires_at (instance method)">#<strong>set_expires_at</strong> &#x21d2; Object </a>
202
-
203
-
204
-
205
- </span>
206
-
207
-
208
-
209
- <span class="note title private">private</span>
210
-
211
-
212
-
213
-
214
-
215
- <span class="summary_desc"><div class='inline'></div></span>
216
-
217
- </li>
218
-
219
-
220
- </ul>
221
-
222
-
223
-
224
-
225
-
226
- <div id="instance_method_details" class="method_details_list">
227
- <h2>Instance Method Details</h2>
228
-
229
-
230
- <div class="method_details first">
231
- <h3 class="signature first" id="expired?-instance_method">
232
-
233
- #<strong>expired?</strong> &#x21d2; <tt>Boolean</tt>
234
-
235
-
236
-
237
-
238
-
239
- </h3><div class="docstring">
240
- <div class="discussion">
241
-
242
-
243
- </div>
244
- </div>
245
- <div class="tags">
246
-
247
- <p class="tag_title">Returns:</p>
248
- <ul class="return">
249
-
250
- <li>
251
-
252
-
253
- <span class='type'>(<tt>Boolean</tt>)</span>
254
-
255
-
256
-
257
- </li>
258
-
259
- </ul>
260
-
261
- </div><table class="source_code">
262
- <tr>
263
- <td>
264
- <pre class="lines">
265
-
266
-
267
- 54
268
- 55
269
- 56</pre>
270
- </td>
271
- <td>
272
- <pre class="code"><span class="info file"># File 'lib/generators/authentication/templates/models/password_reset_token.rb', line 54</span>
273
-
274
- <span class='kw'>def</span> <span class='id identifier rubyid_expired?'>expired?</span>
275
- <span class='id identifier rubyid_expires_at'>expires_at</span> <span class='op'>&lt;=</span> <span class='const'>Time</span><span class='period'>.</span><span class='id identifier rubyid_current'>current</span>
276
- <span class='kw'>end</span></pre>
277
- </td>
278
- </tr>
279
- </table>
280
- </div>
281
-
282
- <div class="method_details ">
283
- <h3 class="signature " id="set_expires_at-instance_method">
284
-
285
- #<strong>set_expires_at</strong> &#x21d2; <tt>Object</tt> <span class="extras">(private)</span>
286
-
287
-
288
-
289
-
290
-
291
- </h3><table class="source_code">
292
- <tr>
293
- <td>
294
- <pre class="lines">
295
-
296
-
297
- 60
298
- 61
299
- 62</pre>
300
- </td>
301
- <td>
302
- <pre class="code"><span class="info file"># File 'lib/generators/authentication/templates/models/password_reset_token.rb', line 60</span>
303
-
304
- <span class='kw'>def</span> <span class='id identifier rubyid_set_expires_at'>set_expires_at</span>
305
- <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_expires_at'>expires_at</span> <span class='op'>=</span> <span class='const'><span class='object_link'><a href="#EXPIRES_AFTER-constant" title="PasswordResetToken::EXPIRES_AFTER (constant)">EXPIRES_AFTER</a></span></span><span class='period'>.</span><span class='id identifier rubyid_from_now'>from_now</span>
306
- <span class='kw'>end</span></pre>
307
- </td>
308
- </tr>
309
- </table>
310
- </div>
311
-
312
- </div>
313
-
314
- </div>
315
-
316
- <div id="footer">
317
- Generated on Thu Aug 13 16:36:42 2020 by
318
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
319
- 0.9.24 (ruby-2.6.6).
320
- </div>
321
-
322
- </div>
323
- </body>
324
- </html>
@@ -1,193 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Module: PasswordResetable
8
-
9
- &mdash; Orthodox
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "PasswordResetable";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (P)</a> &raquo;
40
-
41
-
42
- <span class="title">PasswordResetable</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Module: PasswordResetable
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
- <dl>
73
- <dt>Extended by:</dt>
74
- <dd>ActiveSupport::Concern</dd>
75
- </dl>
76
-
77
-
78
-
79
-
80
-
81
-
82
-
83
-
84
- <dl>
85
- <dt>Defined in:</dt>
86
- <dd>lib/generators/authentication/templates/models/concerns/password_resetable.rb</dd>
87
- </dl>
88
-
89
- </div>
90
-
91
- <h2>Overview</h2><div class="docstring">
92
- <div class="discussion">
93
- <p>Model concern to provide shared behaviour for password resets</p>
94
-
95
- <p>Automatically generated by the orthodox gem (<a href="https://github.com/katanacode/orthodox">https://github.com/katanacode/orthodox</a>)
96
- (c) Copyright 2019 Katana Code Ltd. All Rights Reserved.</p>
97
-
98
-
99
- </div>
100
- </div>
101
- <div class="tags">
102
-
103
-
104
- </div>
105
-
106
-
107
-
108
-
109
-
110
-
111
-
112
- <h2>
113
- Instance Method Summary
114
- <small><a href="#" class="summary_toggle">collapse</a></small>
115
- </h2>
116
-
117
- <ul class="summary">
118
-
119
- <li class="public ">
120
- <span class="summary_signature">
121
-
122
- <a href="#destroy_password_reset_token-instance_method" title="#destroy_password_reset_token (instance method)">#<strong>destroy_password_reset_token</strong> &#x21d2; Object </a>
123
-
124
-
125
-
126
- </span>
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- <span class="summary_desc"><div class='inline'></div></span>
137
-
138
- </li>
139
-
140
-
141
- </ul>
142
-
143
-
144
-
145
-
146
-
147
- <div id="instance_method_details" class="method_details_list">
148
- <h2>Instance Method Details</h2>
149
-
150
-
151
- <div class="method_details first">
152
- <h3 class="signature first" id="destroy_password_reset_token-instance_method">
153
-
154
- #<strong>destroy_password_reset_token</strong> &#x21d2; <tt>Object</tt>
155
-
156
-
157
-
158
-
159
-
160
- </h3><table class="source_code">
161
- <tr>
162
- <td>
163
- <pre class="lines">
164
-
165
-
166
- 15
167
- 16
168
- 17</pre>
169
- </td>
170
- <td>
171
- <pre class="code"><span class="info file"># File 'lib/generators/authentication/templates/models/concerns/password_resetable.rb', line 15</span>
172
-
173
- <span class='kw'>def</span> <span class='id identifier rubyid_destroy_password_reset_token'>destroy_password_reset_token</span>
174
- <span class='id identifier rubyid_password_reset_token'>password_reset_token</span><span class='period'>.</span><span class='id identifier rubyid_try'>try</span><span class='lparen'>(</span><span class='symbol'>:destroy</span><span class='rparen'>)</span>
175
- <span class='kw'>end</span></pre>
176
- </td>
177
- </tr>
178
- </table>
179
- </div>
180
-
181
- </div>
182
-
183
- </div>
184
-
185
- <div id="footer">
186
- Generated on Thu Aug 13 16:36:42 2020 by
187
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
188
- 0.9.24 (ruby-2.6.6).
189
- </div>
190
-
191
- </div>
192
- </body>
193
- </html>