devise 3.1.0 → 3.2.0
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.
Potentially problematic release.
This version of devise might be problematic. Click here for more details.
- data/CHANGELOG.md +119 -94
- data/Gemfile.lock +2 -2
- data/README.md +2 -2
- data/app/controllers/devise/confirmations_controller.rb +3 -8
- data/app/controllers/devise/passwords_controller.rb +1 -1
- data/app/controllers/devise/registrations_controller.rb +6 -6
- data/app/controllers/devise/sessions_controller.rb +3 -3
- data/app/controllers/devise/unlocks_controller.rb +1 -1
- data/app/controllers/devise_controller.rb +6 -2
- data/app/mailers/devise/mailer.rb +15 -13
- data/config/locales/en.yml +2 -3
- data/gemfiles/Gemfile.rails-3.2.x.lock +4 -4
- data/lib/devise/controllers/helpers.rb +16 -84
- data/lib/devise/controllers/rememberable.rb +2 -12
- data/lib/devise/controllers/sign_in_out.rb +103 -0
- data/lib/devise/failure_app.rb +11 -2
- data/lib/devise/hooks/forgetable.rb +1 -1
- data/lib/devise/hooks/proxy.rb +21 -0
- data/lib/devise/hooks/rememberable.rb +1 -1
- data/lib/devise/hooks/timeoutable.rb +4 -1
- data/lib/devise/models/authenticatable.rb +8 -9
- data/lib/devise/models/confirmable.rb +0 -4
- data/lib/devise/models/database_authenticatable.rb +17 -7
- data/lib/devise/models/lockable.rb +6 -4
- data/lib/devise/models/recoverable.rb +0 -8
- data/lib/devise/models.rb +0 -5
- data/lib/devise/modules.rb +0 -1
- data/lib/devise/parameter_sanitizer.rb +9 -3
- data/lib/devise/rails/routes.rb +30 -15
- data/lib/devise/test_helpers.rb +1 -0
- data/lib/devise/version.rb +1 -1
- data/lib/devise.rb +23 -12
- data/lib/generators/mongoid/devise_generator.rb +0 -3
- data/lib/generators/templates/devise.rb +6 -10
- data/lib/generators/templates/markerb/confirmation_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/reset_password_instructions.markerb +1 -1
- data/lib/generators/templates/markerb/unlock_instructions.markerb +1 -1
- data/test/controllers/internal_helpers_test.rb +2 -2
- data/test/controllers/sessions_controller_test.rb +1 -1
- data/test/devise_test.rb +12 -1
- data/test/failure_app_test.rb +11 -0
- data/test/integration/confirmable_test.rb +11 -13
- data/test/integration/http_authenticatable_test.rb +0 -10
- data/test/integration/recoverable_test.rb +2 -2
- data/test/integration/rememberable_test.rb +3 -3
- data/test/integration/timeoutable_test.rb +28 -0
- data/test/mapping_test.rb +2 -2
- data/test/models/confirmable_test.rb +0 -9
- data/test/models/database_authenticatable_test.rb +19 -1
- data/test/models/lockable_test.rb +16 -10
- data/test/models/recoverable_test.rb +0 -10
- data/test/parameter_sanitizer_test.rb +9 -0
- data/test/rails_app/app/mongoid/user.rb +0 -3
- data/test/rails_app/db/migrate/20100401102949_create_tables.rb +0 -3
- data/test/rails_app/db/schema.rb +0 -1
- data/test/rails_app/lib/shared_user.rb +1 -1
- data/test/support/locale/en.yml +4 -0
- data/test/test_helpers_test.rb +22 -0
- metadata +4 -8
- data/lib/devise/models/token_authenticatable.rb +0 -92
- data/lib/devise/strategies/token_authenticatable.rb +0 -91
- data/test/integration/token_authenticatable_test.rb +0 -205
- data/test/models/token_authenticatable_test.rb +0 -55
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,34 @@
|
|
1
|
-
|
1
|
+
### 3.2.0
|
2
|
+
|
3
|
+
* enhancements
|
4
|
+
* Previously deprecated token authenticatable and insecure lookups have been removed
|
5
|
+
* Add a class method so you can encrypt passwords from fixtures (by @tenderlove)
|
6
|
+
* Send custom message when user enters invalid password and it has only one attempt
|
7
|
+
to enter correct password before his account will be locked (by @Lightpower)
|
8
|
+
* Prevent mutation of values assigned to case and whitespace santitized members (by @iamvery)
|
9
|
+
* Separate redirects and flash messages in `navigational_formats` and `flashing_formats` (by @ssendev)
|
10
|
+
|
11
|
+
* bug fix
|
12
|
+
* A GET to sign_in page shouldn't extend the session (by @drewish)
|
13
|
+
* Splat the arguments to `strong_parameters#permit` to work around a limitation in the `strong_parameters` gem (by @memberful)
|
14
|
+
* Omniauth now uses `mapping.fullpath` when generating routes. This means if you call `devise_for :users` inside a scope, like `scope "/api"`, the scope will now apply to the omniauth route (by @AlexanderZaytsev)
|
15
|
+
* Ensure timeoutable hook respects `Devise.sign_out_all_scopes` configuration
|
16
|
+
|
17
|
+
* deprecations
|
18
|
+
* `expire_session_data_after_sign_in!` has been deprecated in favor of `expire_data_after_sign_in!`
|
19
|
+
|
20
|
+
### 3.1.1
|
21
|
+
|
22
|
+
* bug fix
|
23
|
+
* Improve default message which asked users to sign in even when they were already signed (by @gregates)
|
24
|
+
* Improve error message for when the config.secret_key is missing
|
25
|
+
|
26
|
+
### 3.1.0
|
2
27
|
|
3
28
|
Security announcement: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/
|
4
29
|
|
5
30
|
* backwards incompatible changes
|
6
|
-
* Do not store confirmation, unlock and reset password tokens directly in the database. This means tokens previously stored in the database are no longer valid. You can reenable this temporarily by setting `config.
|
31
|
+
* Do not store confirmation, unlock and reset password tokens directly in the database. This means tokens previously stored in the database are no longer valid. You can reenable this temporarily by setting `config.allow_insecure_token_lookup = true` in your configuration file. It is recommended to keep this configuration set to true just temporarily in your production servers only to aid migration
|
7
32
|
* The Devise mailer and its views were changed to explicitly receive a token argument as `@token`. You will need to update your mailers and re-copy the views to your application with `rails g devise:views`
|
8
33
|
* Sanitization of parameters should be done by calling `devise_parameter_sanitizer.sanitize(:action)` instead of `devise_parameter_sanitizer.for(:action)`
|
9
34
|
|
@@ -21,12 +46,12 @@ Security announcement: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-w
|
|
21
46
|
* Do not compare directly against confirmation, unlock and reset password tokens
|
22
47
|
* Skip storage for cookies on unverified requests
|
23
48
|
|
24
|
-
|
49
|
+
### 3.0.2
|
25
50
|
|
26
51
|
* bug fix
|
27
52
|
* Skip storage for cookies on unverified requests
|
28
53
|
|
29
|
-
|
54
|
+
### 3.0.1
|
30
55
|
|
31
56
|
Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixation-attacks-in-devise/
|
32
57
|
|
@@ -37,7 +62,7 @@ Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixat
|
|
37
62
|
* When using rails 3.2, the generator adds 'attr_accessible' to the model (by @jcoyne)
|
38
63
|
* Clean up CSRF token after authentication (by @homakov). Notice this change will clean up the CSRF Token after authentication (sign in, sign up, etc). So if you are using AJAX for such features, you will need to fetch a new CSRF token from the server.
|
39
64
|
|
40
|
-
|
65
|
+
### 3.0.0
|
41
66
|
|
42
67
|
* enhancements
|
43
68
|
* Rails 4 and Strong Parameters compatibility (by @carlosantoniodasilva, @josevalim, @latortuga, @lucasmazza, @nashby, @rafaelfranca, @spastorino)
|
@@ -48,9 +73,9 @@ Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixat
|
|
48
73
|
* Errors on unlock are now properly reflected on the first `unlock_keys`
|
49
74
|
|
50
75
|
* backwards incompatible changes
|
51
|
-
* Changes on session storage will expire all existing sessions on upgrade
|
76
|
+
* Changes on session storage will expire all existing sessions on upgrade. For those storing the session in the DB, they can be upgraded according to this gist: https://gist.github.com/moll/6417606
|
52
77
|
|
53
|
-
|
78
|
+
### 2.2.4
|
54
79
|
|
55
80
|
* enhancements
|
56
81
|
* Add `destroy_with_password` to `DatabaseAuthenticatable`. Allows destroying a record when `:current_password` matches, similarly to how `update_with_password` works. (by @michiel3)
|
@@ -66,25 +91,25 @@ Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixat
|
|
66
91
|
* Fix inheriting mailer templates from `Devise::Mailer`
|
67
92
|
* Fix a bug when procs are used as default mailer in Devise (by @tomasv)
|
68
93
|
|
69
|
-
|
94
|
+
### 2.2.3
|
70
95
|
|
71
96
|
Security announcement: http://blog.plataformatec.com.br/2013/01/security-announcement-devise-v2-2-3-v2-1-3-v2-0-5-and-v1-5-3-released/
|
72
97
|
|
73
98
|
* bug fix
|
74
99
|
* Require string conversion for all values
|
75
100
|
|
76
|
-
|
101
|
+
### 2.2.2
|
77
102
|
|
78
103
|
* bug fix
|
79
104
|
* Fix bug when checking for reconfirmable in templates
|
80
105
|
|
81
|
-
|
106
|
+
### 2.2.1
|
82
107
|
|
83
108
|
* bug fix
|
84
109
|
* Fix regression with case_insensitive_keys
|
85
110
|
* Fix regression when password is blank when it is invalid
|
86
111
|
|
87
|
-
|
112
|
+
### 2.2.0
|
88
113
|
|
89
114
|
* backwards incompatible changes
|
90
115
|
* `headers_for` is deprecated, customize the mailer directly instead
|
@@ -115,7 +140,7 @@ Security announcement: http://blog.plataformatec.com.br/2013/01/security-announc
|
|
115
140
|
* `update_with_password` doesn't change encrypted password when it is invalid (by @nashby)
|
116
141
|
* Properly handle namespaced models on Active Record generator (by @nashby)
|
117
142
|
|
118
|
-
|
143
|
+
### 2.1.2
|
119
144
|
|
120
145
|
* enhancements
|
121
146
|
* Handle backwards incompatibility between Rails 3.2.6 and Thor 0.15.x
|
@@ -123,7 +148,7 @@ Security announcement: http://blog.plataformatec.com.br/2013/01/security-announc
|
|
123
148
|
* bug fix
|
124
149
|
* Fix regression on strategy validation on previous release
|
125
150
|
|
126
|
-
|
151
|
+
### 2.1.1 (yanked)
|
127
152
|
|
128
153
|
* enhancements
|
129
154
|
* `sign_out_all_scopes` now locks warden and does not allow new logins in the same action
|
@@ -140,7 +165,7 @@ Security announcement: http://blog.plataformatec.com.br/2013/01/security-announc
|
|
140
165
|
* deprecations
|
141
166
|
* Strategy#validate() no longer validates nil resources
|
142
167
|
|
143
|
-
|
168
|
+
### 2.1.0
|
144
169
|
|
145
170
|
* enhancements
|
146
171
|
* Add `check_fields!(model_class)` method on Devise::Models to check if the model includes the fields that Devise uses
|
@@ -167,7 +192,7 @@ Security announcement: http://blog.plataformatec.com.br/2013/01/security-announc
|
|
167
192
|
* Return `head :no_content` in SessionsController now that most JS libraries handle it (by @julianvargasalvarez)
|
168
193
|
* Reverted moving devise/shared/_links.erb to devise/_links.erb
|
169
194
|
|
170
|
-
|
195
|
+
### 2.0.4
|
171
196
|
|
172
197
|
Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0
|
173
198
|
|
@@ -175,7 +200,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
175
200
|
* Fix when :host is used with devise_for (by @mreinsch)
|
176
201
|
* Fix a regression that caused Warden to be initialized too late
|
177
202
|
|
178
|
-
|
203
|
+
### 2.0.3 (yanked)
|
179
204
|
|
180
205
|
* bug fix
|
181
206
|
* Ensure warning is not shown by mistake on apps with mounted engines
|
@@ -183,7 +208,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
183
208
|
* Ensure serializable_hash does not depend on accessible attributes
|
184
209
|
* Ensure that timeout callback does not run on sign out action
|
185
210
|
|
186
|
-
|
211
|
+
### 2.0.2
|
187
212
|
|
188
213
|
* enhancements
|
189
214
|
* Add devise_i18n_options to customize I18n message
|
@@ -195,7 +220,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
195
220
|
* Show a warning in case someone gives a pluralized name to devise generator
|
196
221
|
* Fix test behavior for rspec subject requests (by @sj26)
|
197
222
|
|
198
|
-
|
223
|
+
### 2.0.1
|
199
224
|
|
200
225
|
* enhancements
|
201
226
|
* Improved error messages on deprecation warnings
|
@@ -204,7 +229,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
204
229
|
* bug fix
|
205
230
|
* Removed tmp and log files from gem
|
206
231
|
|
207
|
-
|
232
|
+
### 2.0.0
|
208
233
|
|
209
234
|
* enhancements
|
210
235
|
* Add support for e-mail reconfirmation on change (by @Mandaryn and @heimidal)
|
@@ -230,14 +255,14 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
230
255
|
* Deprecated support to devise.registrations.reasons and devise.registrations.inactive_signed_up in favor of devise.registrations.signed_up_but_*
|
231
256
|
* Protected method render_with_scope was removed.
|
232
257
|
|
233
|
-
|
258
|
+
### 1.5.3
|
234
259
|
|
235
260
|
* bug fix
|
236
261
|
* Ensure delegator converts scope to symbol (by @dmitriy-kiriyenko)
|
237
262
|
* Ensure passing :format => false to devise_for is not permanent
|
238
263
|
* Ensure path checker does not check invalid routes
|
239
264
|
|
240
|
-
|
265
|
+
### 1.5.2
|
241
266
|
|
242
267
|
* enhancements
|
243
268
|
* Add support for Rails 3.1 new mass assignment conventions (by @kirs)
|
@@ -246,12 +271,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
246
271
|
* bug fix
|
247
272
|
* OmniAuth error message now shows the proper option (:strategy_class instead of :klass)
|
248
273
|
|
249
|
-
|
274
|
+
### 1.5.1
|
250
275
|
|
251
276
|
* bug fix
|
252
277
|
* Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
|
253
278
|
|
254
|
-
|
279
|
+
### 1.5.0
|
255
280
|
|
256
281
|
* enhancements
|
257
282
|
* Timeoutable also skips tracking if skip_trackable is given
|
@@ -272,12 +297,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
272
297
|
* redirect_location is deprecated, please use after_sign_in_path_for
|
273
298
|
* after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
|
274
299
|
|
275
|
-
|
300
|
+
### 1.4.9
|
276
301
|
|
277
302
|
* bug fix
|
278
303
|
* url helpers were not being set under some circumstances
|
279
304
|
|
280
|
-
|
305
|
+
### 1.4.8
|
281
306
|
|
282
307
|
* enhancements
|
283
308
|
* Add docs for assets pipeline and Heroku
|
@@ -285,12 +310,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
285
310
|
* bug fix
|
286
311
|
* confirmation_url was not being set under some circumstances
|
287
312
|
|
288
|
-
|
313
|
+
### 1.4.7
|
289
314
|
|
290
315
|
* bug fix
|
291
316
|
* Fix backward incompatible change from 1.4.6 for those using custom controllers
|
292
317
|
|
293
|
-
|
318
|
+
### 1.4.6 (yanked)
|
294
319
|
|
295
320
|
* enhancements
|
296
321
|
* Allow devise_for :skip => :all
|
@@ -298,7 +323,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
298
323
|
* Allow --skip-routes to devise generator
|
299
324
|
* Add allow_params_authentication! to make it explicit when params authentication is allowed in a controller
|
300
325
|
|
301
|
-
|
326
|
+
### 1.4.5
|
302
327
|
|
303
328
|
* bug fix
|
304
329
|
* Failure app tries the root path if a session one does not exist
|
@@ -306,12 +331,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
306
331
|
* Reset password shows proper message if user is not active
|
307
332
|
* `clean_up_passwords` sets the accessors to nil to skip validations
|
308
333
|
|
309
|
-
|
334
|
+
### 1.4.4
|
310
335
|
|
311
336
|
* bug fix
|
312
337
|
* Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
|
313
338
|
|
314
|
-
|
339
|
+
### 1.4.3
|
315
340
|
|
316
341
|
* enhancements
|
317
342
|
* Improve Rails 3.1 compatibility
|
@@ -327,12 +352,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
327
352
|
* deprecations
|
328
353
|
* Loosened the used email regexp to simply assert the existent of "@". If someone relies on a more strict regexp, they may use https://github.com/SixArm/sixarm_ruby_email_address_validation
|
329
354
|
|
330
|
-
|
355
|
+
### 1.4.2
|
331
356
|
|
332
357
|
* bug fix
|
333
358
|
* Provide a more robust behavior to serializers and add :force_except option
|
334
359
|
|
335
|
-
|
360
|
+
### 1.4.1
|
336
361
|
|
337
362
|
* enhancements
|
338
363
|
* Add :defaults and :format support on router
|
@@ -343,7 +368,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
343
368
|
* Ensure to_xml is properly white listened
|
344
369
|
* Ensure handle_unverified_request clean up any cached signed-in user
|
345
370
|
|
346
|
-
|
371
|
+
### 1.4.0
|
347
372
|
|
348
373
|
* enhancements
|
349
374
|
* Added authenticated and unauthenticated to the router to route the used based on his status (by @sj26)
|
@@ -361,22 +386,22 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
361
386
|
* Devise now honors routes constraints (by @macmartine)
|
362
387
|
* Do not return the user resource when requesting instructions (by @rodrigoflores)
|
363
388
|
|
364
|
-
|
389
|
+
### 1.3.4
|
365
390
|
|
366
391
|
* bug fix
|
367
392
|
* Do not add formats if html or "*/*"
|
368
393
|
|
369
|
-
|
394
|
+
### 1.3.3
|
370
395
|
|
371
396
|
* bug fix
|
372
397
|
* Explicitly mark the token as expired if so
|
373
398
|
|
374
|
-
|
399
|
+
### 1.3.2
|
375
400
|
|
376
401
|
* bug fix
|
377
402
|
* Fix another regression related to reset_password_sent_at (by @alexdreher)
|
378
403
|
|
379
|
-
|
404
|
+
### 1.3.1
|
380
405
|
|
381
406
|
* enhancements
|
382
407
|
* Improve failure_app responses (by @indirect)
|
@@ -385,7 +410,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
385
410
|
* bug fix
|
386
411
|
* Fix a regression that occurred if reset_password_sent_at is not present (by @stevehodgkiss)
|
387
412
|
|
388
|
-
|
413
|
+
### 1.3.0
|
389
414
|
|
390
415
|
* enhancements
|
391
416
|
* All controllers can now handle different mime types than html using Responders (by @sikachu)
|
@@ -405,19 +430,19 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
405
430
|
* backward incompatible changes
|
406
431
|
* authentication_keys are no longer considered when creating the e-mail validations, the previous behavior was buggy. You must double check if you were relying on such behavior.
|
407
432
|
|
408
|
-
|
433
|
+
### 1.2.1
|
409
434
|
|
410
435
|
* enhancements
|
411
436
|
* Improve update path messages
|
412
437
|
|
413
|
-
|
438
|
+
### 1.2.0
|
414
439
|
|
415
440
|
* bug fix
|
416
441
|
* Properly ignore path prefix on omniauthable
|
417
442
|
* Faster uniqueness queries
|
418
443
|
* Rename active? to active_for_authentication? to avoid conflicts
|
419
444
|
|
420
|
-
|
445
|
+
### 1.2.rc2
|
421
446
|
|
422
447
|
* enhancements
|
423
448
|
* Make friendly_token 20 chars long
|
@@ -447,7 +472,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
447
472
|
* Removed --haml and --slim view templates
|
448
473
|
* Devise::OmniAuth helpers were deprecated and removed in favor of Omniauth.config.test_mode
|
449
474
|
|
450
|
-
|
475
|
+
### 1.2.rc
|
451
476
|
|
452
477
|
* deprecations
|
453
478
|
* cookie_domain is deprecated in favor of cookie_options
|
@@ -485,13 +510,13 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
485
510
|
* Ensure namespaces has proper scoped views
|
486
511
|
* Ensure Devise does not set empty flash messages (by @sxross)
|
487
512
|
|
488
|
-
|
513
|
+
### 1.1.6
|
489
514
|
|
490
515
|
* Use a more secure e-mail regexp
|
491
516
|
* Implement Rails 3.0.4 handle unverified request
|
492
517
|
* Use secure_compare to compare passwords
|
493
518
|
|
494
|
-
|
519
|
+
### 1.1.5
|
495
520
|
|
496
521
|
* bugfix
|
497
522
|
* Ensure to convert keys on indifferent hash
|
@@ -499,12 +524,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
499
524
|
* defaults
|
500
525
|
* Set config.http_authenticatable to false to avoid confusion
|
501
526
|
|
502
|
-
|
527
|
+
### 1.1.4
|
503
528
|
|
504
529
|
* bugfix
|
505
530
|
* Avoid session fixation attacks
|
506
531
|
|
507
|
-
|
532
|
+
### 1.1.3
|
508
533
|
|
509
534
|
* bugfix
|
510
535
|
* Add reply-to to e-mail headers by default
|
@@ -515,17 +540,17 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
515
540
|
* Fix for failed first-ever logins on PostgreSQL where column default is nil (by @bensie)
|
516
541
|
* :default options is now honored in migrations
|
517
542
|
|
518
|
-
|
543
|
+
### 1.1.2
|
519
544
|
|
520
545
|
* bugfix
|
521
546
|
* Compatibility with latest Rails routes schema
|
522
547
|
|
523
|
-
|
548
|
+
### 1.1.1
|
524
549
|
|
525
550
|
* bugfix
|
526
551
|
* Fix a small bug where generated locale file was empty on devise:install
|
527
552
|
|
528
|
-
|
553
|
+
### 1.1.0
|
529
554
|
|
530
555
|
* enhancements
|
531
556
|
* Rememberable module allows user to be remembered across browsers and is enabled by default (by @trevorturk)
|
@@ -545,7 +570,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
545
570
|
* deprecations
|
546
571
|
* use_default_scope is deprecated and has no effect. Use :as or :devise_scope in the router instead
|
547
572
|
|
548
|
-
|
573
|
+
### 1.1.rc2
|
549
574
|
|
550
575
|
* enhancements
|
551
576
|
* Allow to set cookie domain for the remember token. (by @mantas)
|
@@ -563,7 +588,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
563
588
|
* devise.mailer.user.confirmations_instructions now should be devise.mailer.confirmations_instructions.user_subject
|
564
589
|
* Generators now use Rails 3 syntax (devise:install) instead of devise_install
|
565
590
|
|
566
|
-
|
591
|
+
### 1.1.rc1
|
567
592
|
|
568
593
|
* enhancements
|
569
594
|
* Rails 3 compatibility
|
@@ -595,7 +620,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
595
620
|
* All messages under devise.sessions, except :signed_in and :signed_out, should be moved to devise.failure
|
596
621
|
* :as and :scope in routes is deprecated. Use :path and :singular instead
|
597
622
|
|
598
|
-
|
623
|
+
### 1.0.8
|
599
624
|
|
600
625
|
* enhancements
|
601
626
|
* Support for latest MongoMapper
|
@@ -604,7 +629,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
604
629
|
* bug fix
|
605
630
|
* confirmation_required? is properly honored on active? calls. (by @paulrosania)
|
606
631
|
|
607
|
-
|
632
|
+
### 1.0.7
|
608
633
|
|
609
634
|
* bug fix
|
610
635
|
* Ensure password confirmation is always required
|
@@ -613,14 +638,14 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
613
638
|
* authenticatable was deprecated and renamed to database_authenticatable
|
614
639
|
* confirmable is not included by default on generation
|
615
640
|
|
616
|
-
|
641
|
+
### 1.0.6
|
617
642
|
|
618
643
|
* bug fix
|
619
644
|
* Do not allow unlockable strategies based on time to access a controller.
|
620
645
|
* Do not send unlockable email several times.
|
621
646
|
* Allow controller to upstram custom! failures to Warden.
|
622
647
|
|
623
|
-
|
648
|
+
### 1.0.5
|
624
649
|
|
625
650
|
* bug fix
|
626
651
|
* Use prepend_before_filter in require_no_authentication.
|
@@ -628,19 +653,19 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
628
653
|
* Fix a bug when giving an association proxy to devise.
|
629
654
|
* Do not use lock! on lockable since it's part of ActiveRecord API.
|
630
655
|
|
631
|
-
|
656
|
+
### 1.0.4
|
632
657
|
|
633
658
|
* bug fix
|
634
659
|
* Fixed a bug when deleting an account with rememberable
|
635
660
|
* Fixed a bug with custom controllers
|
636
661
|
|
637
|
-
|
662
|
+
### 1.0.3
|
638
663
|
|
639
664
|
* enhancements
|
640
665
|
* HTML e-mails now have proper formatting
|
641
666
|
* Do not remove MongoMapper options in find
|
642
667
|
|
643
|
-
|
668
|
+
### 1.0.2
|
644
669
|
|
645
670
|
* enhancements
|
646
671
|
* Allows you set mailer content type (by @glennr)
|
@@ -648,7 +673,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
648
673
|
* bug fix
|
649
674
|
* Uses the same content type as request on http authenticatable 401 responses
|
650
675
|
|
651
|
-
|
676
|
+
### 1.0.1
|
652
677
|
|
653
678
|
* enhancements
|
654
679
|
* HttpAuthenticatable is not added by default automatically.
|
@@ -657,7 +682,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
657
682
|
* bug fix
|
658
683
|
* Fixed encryptors autoload
|
659
684
|
|
660
|
-
|
685
|
+
### 1.0.0
|
661
686
|
|
662
687
|
* deprecation
|
663
688
|
* :old_password in update_with_password is deprecated, use :current_password instead
|
@@ -668,7 +693,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
668
693
|
* Allow scoped_views to be customized per controller/mailer class
|
669
694
|
* Allow authenticatable to used in change_table statements
|
670
695
|
|
671
|
-
|
696
|
+
### 0.9.2
|
672
697
|
|
673
698
|
* bug fix
|
674
699
|
* Ensure inactive user cannot sign in
|
@@ -678,13 +703,13 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
678
703
|
* Added gemspec to repo
|
679
704
|
* Added token authenticatable (by @grimen)
|
680
705
|
|
681
|
-
|
706
|
+
### 0.9.1
|
682
707
|
|
683
708
|
* bug fix
|
684
709
|
* Allow bigger salt size (by @jgeiger)
|
685
710
|
* Fix relative url root
|
686
711
|
|
687
|
-
|
712
|
+
### 0.9.0
|
688
713
|
|
689
714
|
* deprecation
|
690
715
|
* devise :all is deprecated
|
@@ -701,7 +726,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
701
726
|
* Accept path prefix not starting with slash
|
702
727
|
* url helpers should rely on find_scope!
|
703
728
|
|
704
|
-
|
729
|
+
### 0.8.2
|
705
730
|
|
706
731
|
* enhancements
|
707
732
|
* Allow Devise.mailer_sender to be a proc (by @grimen)
|
@@ -709,7 +734,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
709
734
|
* bug fix
|
710
735
|
* Fix bug with passenger, update is required to anyone deploying on passenger (by @dvdpalm)
|
711
736
|
|
712
|
-
|
737
|
+
### 0.8.1
|
713
738
|
|
714
739
|
* enhancements
|
715
740
|
* Move salt to encryptors
|
@@ -719,7 +744,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
719
744
|
* bug fix
|
720
745
|
* Bcrypt generator was not being loaded neither setting the proper salt
|
721
746
|
|
722
|
-
|
747
|
+
### 0.8.0
|
723
748
|
|
724
749
|
* enhancements
|
725
750
|
* Warden 0.8.0 compatibility
|
@@ -733,19 +758,19 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
733
758
|
* deprecation
|
734
759
|
* Removed DeviseMailer.sender
|
735
760
|
|
736
|
-
|
761
|
+
### 0.7.5
|
737
762
|
|
738
763
|
* enhancements
|
739
764
|
* Set a default value for mailer to avoid find_template issues
|
740
765
|
* Add models configuration to MongoMapper::EmbeddedDocument as well
|
741
766
|
|
742
|
-
|
767
|
+
### 0.7.4
|
743
768
|
|
744
769
|
* enhancements
|
745
770
|
* Extract Activatable from Confirmable
|
746
771
|
* Decouple Serializers from Devise modules
|
747
772
|
|
748
|
-
|
773
|
+
### 0.7.3
|
749
774
|
|
750
775
|
* bug fix
|
751
776
|
* Give scope to the proper model validation
|
@@ -755,7 +780,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
755
780
|
* Added update_with_password for authenticatable
|
756
781
|
* Allow render_with_scope to accept :controller option
|
757
782
|
|
758
|
-
|
783
|
+
### 0.7.2
|
759
784
|
|
760
785
|
* deprecation
|
761
786
|
* Renamed reset_confirmation! to resend_confirmation!
|
@@ -765,12 +790,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
765
790
|
* Fixed render_with_scope to work with all controllers
|
766
791
|
* Allow sign in with two different users in Devise::TestHelpers
|
767
792
|
|
768
|
-
|
793
|
+
### 0.7.1
|
769
794
|
|
770
795
|
* enhancements
|
771
796
|
* Small enhancements for other plugins compatibility (by @grimen)
|
772
797
|
|
773
|
-
|
798
|
+
### 0.7.0
|
774
799
|
|
775
800
|
* deprecations
|
776
801
|
* :authenticatable is not included by default anymore
|
@@ -779,25 +804,25 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
779
804
|
* Improve loading process
|
780
805
|
* Extract SessionSerializer from Authenticatable
|
781
806
|
|
782
|
-
|
807
|
+
### 0.6.3
|
783
808
|
|
784
809
|
* bug fix
|
785
810
|
* Added trackable to migrations
|
786
811
|
* Allow inflections to work
|
787
812
|
|
788
|
-
|
813
|
+
### 0.6.2
|
789
814
|
|
790
815
|
* enhancements
|
791
816
|
* More DataMapper compatibility
|
792
817
|
* Devise::Trackable - track sign in count, timestamps and ips
|
793
818
|
|
794
|
-
|
819
|
+
### 0.6.1
|
795
820
|
|
796
821
|
* enhancements
|
797
822
|
* Devise::Timeoutable - timeout sessions without activity
|
798
823
|
* DataMapper now accepts conditions
|
799
824
|
|
800
|
-
|
825
|
+
### 0.6.0
|
801
826
|
|
802
827
|
* deprecations
|
803
828
|
* :authenticatable is still included by default, but yields a deprecation warning
|
@@ -808,19 +833,19 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
808
833
|
* Allow a strategy to be placed after authenticatable
|
809
834
|
* Do not rely attribute? methods, since they are not added on Datamapper
|
810
835
|
|
811
|
-
|
836
|
+
### 0.5.6
|
812
837
|
|
813
838
|
* enhancements
|
814
839
|
* Do not send nil to build (DataMapper compatibility)
|
815
840
|
* Allow to have scoped views
|
816
841
|
|
817
|
-
|
842
|
+
### 0.5.5
|
818
843
|
|
819
844
|
* enhancements
|
820
845
|
* Allow overwriting find for authentication method
|
821
846
|
* Remove Ruby 1.8.7 dependency
|
822
847
|
|
823
|
-
|
848
|
+
### 0.5.4
|
824
849
|
|
825
850
|
* deprecations
|
826
851
|
* Deprecate :singular in devise_for and use :scope instead
|
@@ -831,7 +856,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
831
856
|
* Create sign_in_and_redirect and sign_out_and_redirect helpers
|
832
857
|
* Warden::Manager.default_scope is automatically configured to the first given scope
|
833
858
|
|
834
|
-
|
859
|
+
### 0.5.3
|
835
860
|
|
836
861
|
* bug fix
|
837
862
|
* MongoMapper now converts DateTime to Time
|
@@ -843,20 +868,20 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
843
868
|
* Added Devise.apply_schema, so you can turn it to false in Datamapper or MongoMapper
|
844
869
|
in cases you don't want it be handlded automatically
|
845
870
|
|
846
|
-
|
871
|
+
### 0.5.2
|
847
872
|
|
848
873
|
* enhancements
|
849
874
|
* Improved sign_in and sign_out helpers to accepts resources
|
850
875
|
* Added stored_location_for as a helper
|
851
876
|
* Added test helpers
|
852
877
|
|
853
|
-
|
878
|
+
### 0.5.1
|
854
879
|
|
855
880
|
* enhancements
|
856
881
|
* Added serializers based on Warden ones
|
857
882
|
* Allow authentication keys to be set
|
858
883
|
|
859
|
-
|
884
|
+
### 0.5.0
|
860
885
|
|
861
886
|
* bug fix
|
862
887
|
* Fixed a bug where remember me module was not working properly
|
@@ -866,13 +891,13 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
866
891
|
* Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by @mhfs)
|
867
892
|
* Added support for MongoMapper (by @shingara)
|
868
893
|
|
869
|
-
|
894
|
+
### 0.4.3
|
870
895
|
|
871
896
|
* bug fix
|
872
897
|
* Authentication just fails if user cannot be serialized from session, without raising errors;
|
873
898
|
* Default configuration values should not overwrite user values;
|
874
899
|
|
875
|
-
|
900
|
+
### 0.4.2
|
876
901
|
|
877
902
|
* deprecations
|
878
903
|
* Renamed mail_sender to mailer_sender
|
@@ -884,12 +909,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
884
909
|
* Allow :path_prefix to be given to devise_for
|
885
910
|
* Allow default_url_options to be configured through devise (:path_prefix => "/:locale" is now supported)
|
886
911
|
|
887
|
-
|
912
|
+
### 0.4.1
|
888
913
|
|
889
914
|
* bug fix
|
890
915
|
* Ensure options can be set even if models were not loaded
|
891
916
|
|
892
|
-
|
917
|
+
### 0.4.0
|
893
918
|
|
894
919
|
* deprecations
|
895
920
|
* Notifier is deprecated, use DeviseMailer instead. Remember to rename
|
@@ -902,7 +927,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
902
927
|
* Allow Warden::Manager to be configured through Devise
|
903
928
|
* Created a generator which creates an initializer
|
904
929
|
|
905
|
-
|
930
|
+
### 0.3.0
|
906
931
|
|
907
932
|
* bug fix
|
908
933
|
* Allow yml messages to be configured by not using engine locales
|
@@ -912,7 +937,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
912
937
|
* Do not send confirmation messages when user changes his e-mail
|
913
938
|
* Renamed authenticable to authenticatable and added deprecation warnings
|
914
939
|
|
915
|
-
|
940
|
+
### 0.2.3
|
916
941
|
|
917
942
|
* enhancements
|
918
943
|
* Ensure fail! works inside strategies
|
@@ -922,12 +947,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
922
947
|
* Do not redirect on invalid authenticate
|
923
948
|
* Allow model configuration to be set to nil
|
924
949
|
|
925
|
-
|
950
|
+
### 0.2.2
|
926
951
|
|
927
952
|
* bug fix
|
928
953
|
* Fix a bug when using customized resources
|
929
954
|
|
930
|
-
|
955
|
+
### 0.2.1
|
931
956
|
|
932
957
|
* refactor
|
933
958
|
* Clean devise_views generator to use devise existing views
|
@@ -939,7 +964,7 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
939
964
|
* bug fix
|
940
965
|
* Fix a bug with Mongrel and Ruby 1.8.6
|
941
966
|
|
942
|
-
|
967
|
+
### 0.2.0
|
943
968
|
|
944
969
|
* enhancements
|
945
970
|
* Allow option :null => true in authenticable migration
|
@@ -954,12 +979,12 @@ Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.
|
|
954
979
|
* bug fixes
|
955
980
|
* Fixed requiring devise strategies
|
956
981
|
|
957
|
-
|
982
|
+
### 0.1.1
|
958
983
|
|
959
984
|
* bug fixes
|
960
985
|
* Fixed requiring devise mapping
|
961
986
|
|
962
|
-
|
987
|
+
### 0.1.0
|
963
988
|
|
964
989
|
* Devise::Authenticable
|
965
990
|
* Devise::Confirmable
|