devise 3.5.10 → 4.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of devise might be problematic. Click here for more details.

Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +9 -9
  3. data/CHANGELOG.md +33 -1188
  4. data/Gemfile +0 -1
  5. data/Gemfile.lock +15 -18
  6. data/MIT-LICENSE +1 -1
  7. data/README.md +20 -10
  8. data/app/controllers/devise/omniauth_callbacks_controller.rb +4 -4
  9. data/app/controllers/devise/passwords_controller.rb +2 -2
  10. data/app/controllers/devise/registrations_controller.rb +2 -2
  11. data/app/controllers/devise/sessions_controller.rb +4 -4
  12. data/app/controllers/devise/unlocks_controller.rb +1 -1
  13. data/app/controllers/devise_controller.rb +11 -7
  14. data/devise.gemspec +2 -3
  15. data/gemfiles/Gemfile.rails-4.1-stable +0 -1
  16. data/gemfiles/Gemfile.rails-4.1-stable.lock +38 -41
  17. data/gemfiles/Gemfile.rails-4.2-stable +0 -1
  18. data/gemfiles/Gemfile.rails-4.2-stable.lock +47 -50
  19. data/gemfiles/Gemfile.rails-5.0-beta +37 -0
  20. data/gemfiles/Gemfile.rails-5.0-beta.lock +242 -0
  21. data/lib/devise.rb +8 -8
  22. data/lib/devise/controllers/helpers.rb +7 -11
  23. data/lib/devise/failure_app.rb +17 -9
  24. data/lib/devise/models/authenticatable.rb +5 -1
  25. data/lib/devise/models/confirmable.rb +3 -4
  26. data/lib/devise/models/database_authenticatable.rb +1 -0
  27. data/lib/devise/models/lockable.rb +1 -5
  28. data/lib/devise/models/rememberable.rb +5 -11
  29. data/lib/devise/parameter_sanitizer.rb +176 -61
  30. data/lib/devise/rails.rb +1 -10
  31. data/lib/devise/rails/routes.rb +25 -14
  32. data/lib/devise/rails/warden_compat.rb +1 -10
  33. data/lib/devise/strategies/rememberable.rb +6 -3
  34. data/lib/devise/test_helpers.rb +9 -4
  35. data/lib/devise/token_generator.rb +1 -41
  36. data/lib/devise/version.rb +1 -1
  37. data/lib/generators/active_record/devise_generator.rb +3 -3
  38. data/lib/generators/active_record/templates/migration.rb +1 -1
  39. data/lib/generators/active_record/templates/migration_existing.rb +1 -1
  40. data/lib/generators/devise/orm_helpers.rb +0 -17
  41. data/lib/generators/templates/controllers/registrations_controller.rb +4 -4
  42. data/lib/generators/templates/controllers/sessions_controller.rb +2 -2
  43. data/lib/generators/templates/devise.rb +4 -5
  44. data/test/controllers/custom_registrations_controller_test.rb +5 -5
  45. data/test/controllers/custom_strategy_test.rb +7 -5
  46. data/test/controllers/helper_methods_test.rb +3 -2
  47. data/test/controllers/helpers_test.rb +1 -1
  48. data/test/controllers/inherited_controller_i18n_messages_test.rb +2 -2
  49. data/test/controllers/internal_helpers_test.rb +8 -10
  50. data/test/controllers/load_hooks_controller_test.rb +1 -1
  51. data/test/controllers/passwords_controller_test.rb +4 -3
  52. data/test/controllers/sessions_controller_test.rb +21 -18
  53. data/test/controllers/url_helpers_test.rb +1 -1
  54. data/test/failure_app_test.rb +19 -14
  55. data/test/generators/active_record_generator_test.rb +0 -26
  56. data/test/helpers/devise_helper_test.rb +1 -1
  57. data/test/integration/authenticatable_test.rb +18 -18
  58. data/test/integration/confirmable_test.rb +5 -5
  59. data/test/integration/database_authenticatable_test.rb +1 -1
  60. data/test/integration/http_authenticatable_test.rb +4 -5
  61. data/test/integration/lockable_test.rb +4 -3
  62. data/test/integration/omniauthable_test.rb +1 -1
  63. data/test/integration/recoverable_test.rb +10 -10
  64. data/test/integration/registerable_test.rb +9 -11
  65. data/test/integration/rememberable_test.rb +7 -43
  66. data/test/integration/timeoutable_test.rb +4 -4
  67. data/test/integration/trackable_test.rb +1 -1
  68. data/test/models/confirmable_test.rb +5 -13
  69. data/test/models/lockable_test.rb +0 -22
  70. data/test/models/rememberable_test.rb +0 -12
  71. data/test/models/validatable_test.rb +2 -10
  72. data/test/omniauth/url_helpers_test.rb +1 -2
  73. data/test/orm/active_record.rb +6 -1
  74. data/test/parameter_sanitizer_test.rb +103 -53
  75. data/test/rails_app/app/active_record/user.rb +3 -0
  76. data/test/rails_app/app/controllers/admins_controller.rb +1 -1
  77. data/test/rails_app/app/controllers/application_controller.rb +2 -2
  78. data/test/rails_app/app/controllers/home_controller.rb +5 -1
  79. data/test/rails_app/app/controllers/users/omniauth_callbacks_controller.rb +2 -2
  80. data/test/rails_app/app/controllers/users_controller.rb +5 -5
  81. data/test/rails_app/config/application.rb +1 -1
  82. data/test/rails_app/config/boot.rb +3 -3
  83. data/test/rails_app/config/environments/test.rb +6 -1
  84. data/test/rails_app/config/initializers/secret_token.rb +1 -6
  85. data/test/routes_test.rb +26 -11
  86. data/test/support/http_method_compatibility.rb +51 -0
  87. data/test/support/webrat/integrations/rails.rb +9 -0
  88. data/test/test_helpers_test.rb +3 -3
  89. metadata +13 -31
  90. data/gemfiles/Gemfile.rails-3.2-stable +0 -29
  91. data/gemfiles/Gemfile.rails-3.2-stable.lock +0 -172
  92. data/gemfiles/Gemfile.rails-4.0-stable +0 -30
  93. data/gemfiles/Gemfile.rails-4.0-stable.lock +0 -166
  94. data/script/cached-bundle +0 -49
  95. data/script/s3-put +0 -71
  96. data/test/time_helpers.rb +0 -137
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c056db58a1f4a6a0a7732f2c856dde7e2ec4669
4
- data.tar.gz: 0374256e647f923a10ef261ae405f55123bdfed8
3
+ metadata.gz: 9d83d3fdffffd6758ceba6aae0b831a05a92abf2
4
+ data.tar.gz: 37bced98172838015eb7ed04a125ff8fd27ae6f8
5
5
  SHA512:
6
- metadata.gz: cbac30ebe59bcc1aea16a7a9981677d71c2a361b4ece716fca6c594d4888130f583f7c6cf4c959278d189fba00a30fa2101c069fcb046609b020e2ddb3a61590
7
- data.tar.gz: 53c77b74f79ba50de083d8625f0b77578ca10d45e3037c7f7ce1a871412e8eb8f082d10f817ab83d297ca9f4247eb1f82d14f3ae77f2bf9ccf3483a1522fbfc0
6
+ metadata.gz: 2545878568e7b865e8327932a0315fc28ec2b3c5b3ab4bb266d0c799c11792bc9c76616d77690cb0671eca653b7a3f03529458b0951dab1d3a10f19a8e2386ff
7
+ data.tar.gz: b021773a363c95ebc717b1da34eab9ac04364d181585bf1ecee2a98d00aa9f0d3f2a84b82769aab2556dc0ca28581042b1077f8f1463efa14f9afce2bd1494d3
@@ -1,23 +1,22 @@
1
1
  language: ruby
2
2
 
3
3
  rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1
7
- - 2.2
4
+ - 2.1.5
5
+ - 2.2.4
6
+ - 2.3.0
8
7
 
9
8
  gemfile:
10
9
  - gemfiles/Gemfile.rails-4.2-stable
11
10
  - gemfiles/Gemfile.rails-4.1-stable
12
- - gemfiles/Gemfile.rails-4.0-stable
13
- - gemfiles/Gemfile.rails-3.2-stable
11
+ - gemfiles/Gemfile.rails-5.0-beta
14
12
  - Gemfile
15
13
 
16
14
  matrix:
17
15
  exclude:
18
- - rvm: 2.2
19
- gemfile: gemfiles/Gemfile.rails-3.2-stable
20
-
16
+ - rvm: 2.1.5
17
+ gemfile: gemfiles/Gemfile.rails-5.0-beta
18
+ - env: DEVISE_ORM=mongoid
19
+ gemfile: gemfiles/Gemfile.rails-5.0-beta
21
20
  services:
22
21
  - mongodb
23
22
 
@@ -39,6 +38,7 @@ script: "bundle exec rake test"
39
38
  notifications:
40
39
  email: false
41
40
  slack:
41
+ on_pull_requests: false
42
42
  on_success: change
43
43
  on_failure: always
44
44
  secure: Q3M+kmude3FjisibEeeGe0wSMXgvwLH+vL7Zrx9//q4QtkfnrQ/BBMvY9KXxPEsNF+eys4YopYjTkJ8uRmeboUATW/oQ4Jrv3+u3zkIHK2sFn/Q2cQWpK5w+CbgEnHPjKYnUu34b09njXTgDlr/mqtbPqrKeZ1dLlpKXCB/q4GY=
@@ -1,1198 +1,43 @@
1
- ### 3.5.10 - 2016-05-15
1
+ ### 4.0.0.rc1 - 2016-01-02
2
2
 
3
- * bug fixes
4
- * Fix overwriting the remember_token when a valid one already exists (by @ralinchimev).
5
-
6
- ### 3.5.9 - 2016-05-02
7
-
8
- * bug fixes
9
- * Fix strategy checking in `Lockable#unlock_strategy_enabled?` for `:none`
10
- and `:undefined` strategies. (by @f3ndot)
11
-
12
- ### 3.5.8 - 2016-04-25
13
-
14
- * bug fixes
15
- * Fix the e-mail confirmation instructions send when a user updates the email address from nil
16
-
17
- ### 3.5.7 - 2016-04-18
18
-
19
- * bug fixes
20
- * Fix the `extend_remember_period` configuration. When set to `false` it does
21
- not update the cookie expiration anymore.(by @ulissesalmeida)
22
-
23
- ### 3.5.6 - 2016-01-02
24
-
25
- * bug fixes
26
- * Fix type coercion of the rememberable timestamp stored on cookies.
27
-
28
- ### 3.5.5 - 2016-22-01
29
-
30
- * bug fixes
31
- * Bring back remember_expired? implementation
32
- * Ensure timeouts are not triggered if remember me is being used
33
-
34
- ### 3.5.4 - 2016-18-01
35
-
36
- * bug fixes
37
- * Store creation timestamps on remember cookies
38
-
39
- ### 3.5.3 - 2015-12-10
40
-
41
- * bug fixes
42
- * Fix password reset for records where `confirmation_required?` is disabled and
43
- `confirmation_sent_at` is nil. (by @andygeers)
44
- * Allow resources with no `email` field to be recoverable (and do not clear the
45
- reset password token if the model was already persisted). (by @seddy, @stanhu)
46
-
47
- * enhancements
48
- * Upon setting `Devise.send_password_change_notification = true` a user will receive notification when their password has been changed.
49
-
50
- ### 3.5.2 - 2015-08-10
51
-
52
- * enhancements
53
- * Perform case insensitive basic authorization matching
54
-
55
- * bug fixes
56
- * Do not use digests for password confirmation token
57
- * Fix infinite redirect in Rails 4.2 authenticated routes
58
- * Autoload Devise::Encryptor to avoid errors on thread-safe mode
59
-
60
- * deprecations
61
- * `config.expire_auth_token_on_timeout` was removed
62
-
63
- ### 3.5.1 - 2015-05-24
64
-
65
- Note: 3.5.0 has been yanked due to a regression
66
-
67
- * security improvements
68
- * Clean up reset password token whenever e-mail or password changes. thanks to George Deglin & Dennis Charles Hackethal for reporting this bug
69
- * Ensure empty `authenticable_salt` cannot be used as remember token. This bug can only affect users who manually implement their own `authenticable_salt` and allow empty values as salt
70
-
71
- * enhancements
72
- * The hint about minimum password length required both `@validatable` and `@minimum_password_length` variables on the views, it now uses only the latter. If you have generated the views relying on the `@validatable` variable, replace it with `@minimum_password_length`.
73
- * Added an ActiveSupport load hook for `:devise_controller`. (by @nakhli)
74
- * Location fragments are now preserved between requests. (by @jbourassa)
75
- * Added an `after_remembered` callback for the Rememerable module. (by @BM5k)
76
- * `RegistrationsController#new` and `SessionsController#new` now yields the
77
- current resource. (by @mtarnovan, @deivid-rodriguez)
78
- * Password length validation is now limited to 72 characters for newer apps. (by @lleger)
79
- * Controllers inheriting from any Devise core controller will now use appropriate translations. The i18n scope can be overridden in `translation_scope`.
80
- * Allow the user to set the length of friendly token. (by @Angelmmiguel)
81
-
82
- * bug fixes
83
- * Use router_name from scope if one is available to support isolated engines. (by @cipater)
84
- * Do not clean up CSRF on rememberable.
85
- * Only use flash if it has been configured in failure app. (by @alex88)
86
-
87
- * deprecations
88
- * `confirm!` has been deprecated in favor of `confirm`.
89
- * `reset_password!` has been deprecated in favor of `reset_password`.
90
- * `Devise.bcrypt` has been deprecated in favor of `Devise::Encryptor.digest`".
91
-
92
- ### 3.4.1 - 2014-10-29
93
-
94
- * enhancements
95
- * Devise default views now have a similar markup to Rails scaffold views. (by @udaysinghcode, @cllns)
96
- * Passing `now: true` to the `set_flash_message` helper now sets the message into
97
- the `flash.now` Hash. (by @hbriggs)
98
- * bugfixes
99
- * Fixed an regression with translation of flash messages for when the `authentication_keys`
100
- config is a Hash. (by @lucasmazza)
101
-
102
- ### 3.4.0 - 2014-10-03
103
-
104
- * enhancements
105
- * Support added for Rails 4.2. Devise now depends on the `responders` gem due
106
- the extraction of the `respond_with` API from Rails. (by @lucasmazza)
107
- * The Simple Form templates follow the same change from 3.3.0 by using `Log in` and adding
108
- a hint about the minimum password length when `validatable` is enabled. (by @aried3r)
109
- * Controller generator added as `devise:controllers SCOPE`. You can use the `-c` flag
110
- to pick which controllers (`unlocks`, `confirmations`, etc) you want to generate. (by @Chun-Yang)
111
- * Removed the hardcoded references for "email" in the flash messages. If you are using
112
- different attributes as the `authentication_keys` they will be interpolated in the
113
- messages instead. (by @timoschilling)
114
- * bug fix
115
- * Fixed a regression where the devise generator would fail with a `ConnectionNotEstablished`
116
- exception when executed inside a mountable engine. (by @lucasmazza)
117
- * Ensure to return symbols in find_scope! fixing a previous regression from 3.3.0 (by @micat)
118
- * Ensure all causes of failed login have the same error message (by @pjungwir)
119
- * The `last_attempt_warning` now takes effect when generating the unauthenticated
120
- message for your users. To keep the current behavior, this flag is now `true`
121
- by default. (by @lucasmazza)
122
-
123
- ### 3.3.0 - 2014-08-13
124
-
125
- * enhancements
126
- * Support multiple warden configuration blocks on devise configuration. (by @rossta)
127
- * Previously, when a user signed out, all remember me tokens for all sessions/browsers would be
128
- invalidated, and this behavior could not be changed. This behavior is now configurable via
129
- `expire_all_remember_me_on_sign_out`. The default continues to be true. (by @laurocaetano)
130
- * Default email messages was updated with grammar fixes, check the diff on
131
- #2906 for the updated copy (by @p-originate)
132
- * Allow a resource to be found based on its encrypted password token (by @karlentwistle)
133
- * Adds `devise_group`, a macro to define controller helpers for multiple mappings at once. (by @dropletzz)
134
- * The default views now use `Log in` instead of `Sign in` and have a hint about the minimum password length if
135
- the current scope is using the `validatable` module (by @alexsoble)
136
-
137
- * bug fix
138
- * Check if there is a signed in user before executing the `SessionsController#destroy`.
139
- * `SessionsController#destroy` no longer yields the `resource` to receiving block,
140
- since the resource isn't loaded in the action. If you need access to the current
141
- resource when overring the action use the scope helper (like `current_user`) before
142
- calling `super`
143
- * Serialize the `last_request_at` entry as an Integer
144
- * Ensure registration controller block yields happen on failure in addition to success (by @dpehrson)
145
- * Only valid paths will be stored for redirections (by @parallel588)
146
-
147
- ### 3.2.4 - 2014-03-17
148
-
149
- * enhancements
150
- * `bcrypt` dependency updated due https://github.com/codahale/bcrypt-ruby/pull/86.
151
- * View generator now can generate specific views with the `-v` flag, like `rails g devise:views -v sessions` (by @kayline)
152
-
153
- ### 3.2.3 - 2014-02-20
154
-
155
- * enhancements
156
- * Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`.
157
- You can change this and use your own secret by changing the `devise.rb` initializer.
158
-
159
- * bug fix
160
- * Migrations will be properly generated when using rails 4.1.0.
161
-
162
- ### 3.2.2 - 2013-11-25
163
-
164
- * bug fix
165
- * Ensure timeoutable works when `sign_out_all_scopes` is false (by @louman)
166
- * Keep the query string when storing location (by @csexton)
167
- * Require rails generator base class in devise generators
168
-
169
- ### 3.2.1 - 2013-11-13
170
-
171
- Security announcement: http://blog.plataformatec.com.br/2013/11/e-mail-enumeration-in-devise-in-paranoid-mode
172
-
173
- * enhancements
174
- * Add `store_location_for` helper and ensure it is safe (by @matthewrudy and @homakov)
175
- * Add `yield` around resource methods in Devise controllers (by @edelpero)
176
-
177
- * bug fix
178
- * Bring `password_digest` back to fix compatibility with `devise-encryptable`
179
- * Avoid e-mail enumeration on sign in when in paranoid mode
180
-
181
- ### 3.2.0 - 2013-11-06
182
-
183
- * enhancements
184
- * Previously deprecated token authenticatable and insecure lookups have been removed
185
- * Add a class method so you can encrypt passwords from fixtures (by @tenderlove)
186
- * Send custom message when user enters invalid password and it has only one attempt
187
- to enter correct password before their account will be locked (by @Lightpower)
188
- * Prevent mutation of values assigned to case and whitespace santitized members (by @iamvery)
189
- * Separate redirects and flash messages in `navigational_formats` and `flashing_formats` (by @ssendev)
190
-
191
- * bug fix
192
- * A GET to sign_in page shouldn't extend the session (by @drewish)
193
- * Splat the arguments to `strong_parameters#permit` to work around a limitation in the `strong_parameters` gem (by @memberful)
194
- * 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)
195
- * Ensure timeoutable hook respects `Devise.sign_out_all_scopes` configuration
196
-
197
- * deprecations
198
- * `expire_session_data_after_sign_in!` has been deprecated in favor of `expire_data_after_sign_in!`
199
-
200
- ### 3.1.1 - 2013-10-01
201
-
202
- * bug fix
203
- * Improve default message which asked users to sign in even when they were already signed (by @gregates)
204
- * Improve error message for when the config.secret_key is missing
205
-
206
- ### 3.1.0 - 2013-09-05
207
-
208
- Security announcement: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/
209
-
210
- * backwards incompatible changes
211
- * 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
212
- * 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`
213
- * Sanitization of parameters should be done by calling `devise_parameter_sanitizer.sanitize(:action)` instead of `devise_parameter_sanitizer.for(:action)`
214
-
215
- * deprecations
216
- * Token authentication is deprecated
217
-
218
- * enhancements
219
- * Better security defaults
220
- * Allow easier customization of parameter sanitizer (by @alexpeattie)
221
-
222
- * bug fix
223
- * Do not confirm e-mail after password reset (by @moll)
224
- * Do not sign in after confirmation
225
- * Do not store confirmation, unlock and reset password tokens directly in the database
226
- * Do not compare directly against confirmation, unlock and reset password tokens
227
- * Skip storage for cookies on unverified requests
228
-
229
- ### 3.0.2 - 2013-08-09
230
-
231
- * bug fix
232
- * Skip storage for cookies on unverified requests
233
-
234
- ### 3.0.1 - 2013-08-02
235
-
236
- Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixation-attacks-in-devise/
237
-
238
- * enhancements
239
- * Add after_confirmation callback
240
-
241
- * bug fix
242
- * When using rails 3.2, the generator adds 'attr_accessible' to the model (by @jcoyne)
243
- * 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.
244
-
245
- ### 3.0.0 - 2013-07-14
246
-
247
- * enhancements
248
- * Rails 4 and Strong Parameters compatibility (by @carlosantoniodasilva, @josevalim, @latortuga, @lucasmazza, @nashby, @rafaelfranca, @spastorino)
249
- * Drop support for Rails < 3.2 and Ruby < 1.9.3
250
- * Enable to skip sending reconfirmation email when reconfirmable is on and `skip_confirmation_notification!` is invoked (by @tkhr)
251
-
252
- * bug fix
253
- * Errors on unlock are now properly reflected on the first `unlock_keys`
254
-
255
- ### 2.2.4 - 2013-05-07
256
-
257
- * enhancements
258
- * Add `destroy_with_password` to `DatabaseAuthenticatable`. Allows destroying a record when `:current_password` matches, similarly to how `update_with_password` works. (by @michiel3)
259
- * Allow to override path after password resetting (by @worker8)
260
- * Add `#skip_confirmation_notification!` method to `Confirmable`. Allows skipping confirmation email without auto-confirming. (by @gregates)
261
- * allow_unconfirmed_access_for config from `:confirmable` module can be set to `nil` that means unconfirmed access for unlimited time. (by @nashby)
262
- * Support Rails' token strategy on authentication (by @robhurring)
263
- * Support explicitly setting the http authentication key via `config.http_authentication_key` (by @neo)
264
-
265
- * bug fix
266
- * Do not redirect when accessing devise API via JSON. (by @sebastianwr)
267
- * Generating scoped devise views now uses the correct scoped shared links partial instead of the default devise one (by @nashby)
268
- * Fix inheriting mailer templates from `Devise::Mailer`
269
- * Fix a bug when procs are used as default mailer in Devise (by @tomasv)
270
-
271
- * backwards incompatible changes
272
- * 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
273
-
274
- ### 2.2.3 - 2013-01-26
275
-
276
- 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/
277
-
278
- * bug fix
279
- * Require string conversion for all values
280
-
281
- ### 2.2.2 - 2013-01-15
282
-
283
- * bug fix
284
- * Fix bug when checking for reconfirmable in templates
285
-
286
- ### 2.2.1 - 2013-01-11
287
-
288
- * bug fix
289
- * Fix regression with case_insensitive_keys
290
- * Fix regression when password is blank when it is invalid
291
-
292
- ### 2.2.0 - 2013-01-08
293
-
294
- * backwards incompatible changes
295
- * `headers_for` is deprecated, customize the mailer directly instead
296
- * All mailer methods now expect a second argument with delivery options
297
- * Default minimum password length is now 8 (by @carlosgaldino)
298
- * Support alternate sign in error message when email record does not exist (this adds a new I18n key to the locale file) (by @gabetax)
299
- * DeviseController responds only to HTML requests by default (call `DeviseController.respond_to` or `ApplicationController.respond_to` to add new formats)
300
- * Support Mongoid 3 onwards (by @durran)
301
-
302
- * enhancements
303
- * Fix unlockable which could leak account existence on paranoid mode (by @latortuga)
304
- * Confirmable now has a confirm_within option to set a period while the confirmation token is still valid (by @promisedlandt)
305
- * Flash messages in controller now respects `resource_name` (by @latortuga)
306
- * Separate `sign_in` and `sign_up` on RegistrationsController (by @rubynortheast)
307
- * Add autofocus to default views (by @Radagaisus)
308
- * Unlock user on password reset (by @marcinb)
309
- * Allow validation callbacks to apply to virtual attributes (by @latortuga)
310
-
311
- * bug fix
312
- * unconfirmed_email now uses the proper e-mail on salutation
313
- * Fix default email_regexp config to not allow spaces (by @kukula)
314
- * Fix a regression introduced on warden 1.2.1 (by @ejfinneran)
315
- * Properly camelize omniauth strategies (by @saizai)
316
- * Do not set flash messages for non navigational requests on session sign out (by @mathieul)
317
- * Set the proper fields as required on the lockable module (by @nickhoffman)
318
- * Respects Devise mailer default's reply_to (by @mrchrisadams)
319
- * Properly assign resource on `sign_in` related action (by @adammcnamara)
320
- * `update_with_password` doesn't change encrypted password when it is invalid (by @nashby)
321
- * Properly handle namespaced models on Active Record generator (by @nashby)
322
-
323
- ### 2.1.4 - 2013-08-18
324
-
325
- * bugfix
326
- * Do not confirm account after reset password
327
-
328
- ### 2.1.3 - 2013-01-26
329
-
330
- * bugfix
331
- * Require string conversion for all values
332
-
333
- ### 2.1.2 - 2012-06-19
334
-
335
- * enhancements
336
- * Handle backwards incompatibility between Rails 3.2.6 and Thor 0.15.x
337
-
338
- * bug fix
339
- * Fix regression on strategy validation on previous release
340
-
341
- ### 2.1.1 - 2012-06-15 (yanked)
342
-
343
- * enhancements
344
- * `sign_out_all_scopes` now locks warden and does not allow new logins in the same action
345
- * `Devise.omniauth_path_prefix` is available to configure omniauth path prefix
346
- * Redirect to sign in page when trying to access password#edit without a token (by @gbataille)
347
- * Allow a lambda in authenticate(d) routes helpers to further select the scope
348
- * Removed warnings on Rails 3.2.6 (by @nashby)
349
-
350
- * bug fix
351
- * `update_with_password` now relies on assign_attributes and forwards the :as option (by @wtn)
352
- * Do not trigger timeout on sign in related actions
353
- * Timeout does not explode when reset_authentication_token! is accidentally defined by Active Model (by @remomueller)
354
-
355
- * deprecations
356
- * Strategy#validate() no longer validates nil resources
357
-
358
- ### 2.1.0 - 2012-05-15
359
-
360
- * enhancements
361
- * Add `check_fields!(model_class)` method on Devise::Models to check if the model includes the fields that Devise uses
362
- * Add `skip_reconfirmation!` to skip reconfirmation
363
- * Devise model generator now works with engines
364
- * Devise encryptable was moved to its new gem (http://github.com/plataformatec/devise-encryptable)
365
-
366
- * deprecations
367
- * Deprecations warnings added on Devise 2.0 are now removed with their features
368
- * All devise modules should now have a `required_fields(klass)` module method to help gathering missing attributes
369
- * `use_salt_as_remember_token` and `apply_schema` does not have any effect since 2.0 and are now deprecated
370
- * `valid_for_authentication?` must now return a boolean
371
-
372
- * bug fix
373
- * Ensure after sign in hook is not called without a resource
374
- * Fix a term: now on Omniauth related flash messages, we say that we're authenticating from an omniauth provider instead of authorizing
375
- * Fixed redirect when authenticated mounted apps (by @hakanensari)
376
- * Ensure the failure app still respects config.relative_url_root
377
- * `/users/sign_in` doesn't choke on protected attributes used to select sign in scope (by @Paymium)
378
- * `failed_attempts` is set to zero after any sign in (including via reset password) (by @rodrigoflores)
379
- * Added token expiration on timeout (by @antiarchitect)
380
- * Do not accidentally mark `_prefixes` as private
381
- * Better support for custom strategies on test helpers (by @mattconnolly)
382
- * Return `head :no_content` in SessionsController now that most JS libraries handle it (by @julianvargasalvarez)
383
- * Reverted moving devise/shared/_links.erb to devise/_links.erb
384
-
385
- ### 2.0.4 - 2012-02-17
386
-
387
- Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0
388
-
389
- * bug fix
390
- * Fix when :host is used with devise_for (by @mreinsch)
391
- * Fix a regression that caused Warden to be initialized too late
392
-
393
- ### 2.0.3 - 2012-06-16 (yanked)
394
-
395
- * bug fix
396
- * Ensure warning is not shown by mistake on apps with mounted engines
397
- * Fixes related to remember_token and rememberable_options
398
- * Ensure serializable_hash does not depend on accessible attributes
399
- * Ensure that timeout callback does not run on sign out action
400
-
401
- ### 2.0.2 - 2012-02-14
402
-
403
- * enhancements
404
- * Add devise_i18n_options to customize I18n message
405
-
406
- * bug fix
407
- * Ensure Devise.available_router_name defaults to :main_app
408
- * Set autocomplete to off for password on edit forms
409
- * Better error messages in case a trackable model can't be saved
410
- * Show a warning in case someone gives a pluralized name to devise generator
411
- * Fix test behavior for rspec subject requests (by @sj26)
412
-
413
- ### 2.0.1 - 2012-02-09
414
-
415
- * enhancements
416
- * Improved error messages on deprecation warnings
417
- * Hide Devise's internal generators from `rails g` command
418
-
419
- * bug fix
420
- * Removed tmp and log files from gem
421
-
422
- ### 2.0.0 - 2012-01-26
423
-
424
- * enhancements
425
- * Add support for e-mail reconfirmation on change (by @Mandaryn and @heimidal)
426
- * Redirect users to sign in page after unlock (by @nashby)
427
- * Redirect to the previous URL on timeout
428
- * Inherit from the same Devise parent controller (by @sj26)
429
- * Allow parent_controller to be customizable via Devise.parent_controller, useful for engines
430
- * Allow router_name to be customizable via Devise.router_name, useful for engines
431
- * Allow alternate ORMs to run compatibility setup code before Authenticatable is included (by @jm81)
432
-
433
- * deprecation
434
- * Devise now only supports Rails 3.1 forward
435
- * Devise.confirm_within was deprecated in favor Devise.allow_unconfirmed_access_for
436
- * Devise.stateless_token= is deprecated in favor of appending :token_auth to Devise.skip_session_storage
437
- * Usage of Devise.apply_schema is deprecated
438
- * Usage of Devise migration helpers are deprecated
439
- * Usage of Devise.remember_across_browsers was deprecated
440
- * Usage of rememberable with remember_token was removed
441
- * Usage of recoverable without reset_password_sent_at was removed
442
- * Usage of Devise.case_insensitive_keys equals to false was removed
443
- * Move devise/shared/_links.erb to devise/_links.erb
444
- * Deprecated support of nested devise_for blocks
445
- * Deprecated support to devise.registrations.reasons and devise.registrations.inactive_signed_up in favor of devise.registrations.signed_up_but_*
446
- * Protected method render_with_scope was removed.
447
-
448
- ### 1.5.3 - 2011-12-19
449
-
450
- * bug fix
451
- * Ensure delegator converts scope to symbol (by @dmitriy-kiriyenko)
452
- * Ensure passing :format => false to devise_for is not permanent
453
- * Ensure path checker does not check invalid routes
454
-
455
- ### 1.5.2 - 2011-11-30
456
-
457
- * enhancements
458
- * Add support for Rails 3.1 new mass assignment conventions (by @kirs)
459
- * Add timeout_in method to Timeoutable, it can be overridden in a model (by @lest)
460
-
461
- * bug fix
462
- * OmniAuth error message now shows the proper option (:strategy_class instead of :klass)
463
-
464
- ### 1.5.1 - 2011-11-22
465
-
466
- * bug fix
467
- * Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
468
-
469
- ### 1.5.0 - 2011-11-13
470
-
471
- * enhancements
472
- * Timeoutable also skips tracking if skip_trackable is given
473
- * devise_for now accepts :failure_app as an option
474
- * Models can select the proper mailer via devise_mailer method (by @locomotivecms)
475
- * Migration generator now uses the change method (by @nashby)
476
- * Support to markerb templates on the mailer generator (by @sbounmy)
477
- * Support for Omniauth 1.0 (older versions are no longer supported) (by @TamiasSibiricus)
478
-
479
- * bug fix
480
- * Allow idempotent API requests
481
- * Fix bug where logs did not show 401 as status code
482
- * Change paranoid settings to behave as success instead of as failure
483
- * Fix bug where activation messages were shown first than the credentials error message
484
- * Instance variables are expired after sign out
485
-
486
- * deprecation
487
- * redirect_location is deprecated, please use after_sign_in_path_for
488
- * after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
489
-
490
- ### 1.4.9 - 2011-10-19
491
-
492
- * bug fix
493
- * url helpers were not being set under some circumstances
494
-
495
- ### 1.4.8 - 2011-10-09
496
-
497
- * enhancements
498
- * Add docs for assets pipeline and Heroku
499
-
500
- * bug fix
501
- * confirmation_url was not being set under some circumstances
502
-
503
- ### 1.4.7 - 2011-09-21
504
-
505
- * bug fix
506
- * Fix backward incompatible change from 1.4.6 for those using custom controllers
507
-
508
- ### 1.4.6 - 2011-09-19 (yanked)
509
-
510
- * enhancements
511
- * Allow devise_for :skip => :all
512
- * Allow options to be passed to authenticate_user!
513
- * Allow --skip-routes to devise generator
514
- * Add allow_params_authentication! to make it explicit when params authentication is allowed in a controller
515
-
516
- ### 1.4.5 - 2011-09-07
517
-
518
- * bug fix
519
- * Failure app tries the root path if a session one does not exist
520
- * No need to finalize Devise helpers all the time (by @bradleypriest)
521
- * Reset password shows proper message if user is not active
522
- * `clean_up_passwords` sets the accessors to nil to skip validations
523
-
524
- ### 1.4.4 - 2011-08-30
525
-
526
- * bug fix
527
- * Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
528
-
529
- ### 1.4.3 - 2011-08-29
530
-
531
- * enhancements
532
- * Improve Rails 3.1 compatibility
533
- * Use serialize_into_session and serialize_from_session in Warden serialize to improve extensibility
534
-
535
- * bug fix
536
- * Generator properly generates a change_table migration if a model already exists
537
- * Properly deprecate setup_mail
538
- * Fix encoding issues with email regexp
539
- * Only generate helpers for the used mappings
540
- * Wrap :action constraints in the proper hash
541
-
542
- * deprecations
543
- * 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
544
-
545
- ### 1.4.2 - 2011-06-30
546
-
547
- * bug fix
548
- * Provide a more robust behavior to serializers and add :force_except option
549
-
550
- ### 1.4.1 - 2011-06-29
551
-
552
- * enhancements
553
- * Add :defaults and :format support on router
554
- * Add simple form generators
555
- * Better localization for devise_error_messages! (by @zedtux)
556
-
557
- * bug fix
558
- * Ensure to_xml is properly white listened
559
- * Ensure handle_unverified_request clean up any cached signed-in user
560
-
561
- ### 1.4.0 - 2011-06-23
562
-
563
- * enhancements
564
- * Added authenticated and unauthenticated to the router to route the used based on their status (by @sj26)
565
- * Improve e-mail regexp (by @rodrigoflores)
566
- * Add strip_whitespace_keys and default to e-mail (by @swrobel)
567
- * Do not run format and uniqueness validations on e-mail if it hasn't changed (by @Thibaut)
568
- * Added update_without_password to update models but not allowing the password to change (by @fschwahn)
569
- * Added config.paranoid, check the generator for more information (by @rodrigoflores)
570
-
571
- * bug fix
572
- * password_required? should not affect length validation
573
- * User cannot access sign up and similar pages if they are already signed in through a cookie or token
574
- * Do not convert booleans to strings on finders (by @xavier)
575
- * Run validations even if current_password fails (by @crx)
576
- * Devise now honors routes constraints (by @macmartine)
577
- * Do not return the user resource when requesting instructions (by @rodrigoflores)
578
-
579
- ### 1.3.4 - 2011-04-28
580
-
581
- * bug fix
582
- * Do not add formats if html or "*/*"
583
-
584
- ### 1.3.3 - 2011-04-20
585
-
586
- * bug fix
587
- * Explicitly mark the token as expired if so
588
-
589
- ### 1.3.2 - 2011-04-20
590
-
591
- * bug fix
592
- * Fix another regression related to reset_password_sent_at (by @alexdreher)
593
-
594
- ### 1.3.1 - 2011-04-18
595
-
596
- * enhancements
597
- * Improve failure_app responses (by @indirect)
598
- * sessions/new and registrations/new also respond to xml and json now
599
-
600
- * bug fix
601
- * Fix a regression that occurred if reset_password_sent_at is not present (by @stevehodgkiss)
602
-
603
- ### 1.3.0 - 2011-04-15
604
-
605
- * enhancements
606
- * All controllers can now handle different mime types than html using Responders (by @sikachu)
607
- * Added reset_password_within as configuration option to send the token for recovery (by @jdguyot)
608
- * Bump password length to 128 characters (by @k33l0r)
609
- * Add :only as option to devise_for (by @timoschilling)
610
- * Allow to override path after sending password instructions (by @irohiroki)
611
- * require_no_authentication has its own flash message (by @jackdempsey)
612
-
613
- * bug fix
614
- * Fix a bug where configuration options were being included too late
615
- * Ensure Devise::TestHelpers can be used to tests Devise internal controllers (by @jwilger)
616
- * valid_password? should not choke on empty passwords (by @mikel)
617
- * Calling devise more than once does not include previously added modules anymore
618
- * downcase_keys before validation
619
-
620
- * backward incompatible changes
621
- * 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.
622
-
623
- ### 1.2.1 - 2011-03-27
624
-
625
- * enhancements
626
- * Improve update path messages
627
-
628
- ### 1.2.0 - 2011-03-24
629
-
630
- * bug fix
631
- * Properly ignore path prefix on omniauthable
632
- * Faster uniqueness queries
633
- * Rename active? to active_for_authentication? to avoid conflicts
634
-
635
- ### 1.2.rc2 - 2011-03-10
636
-
637
- * enhancements
638
- * Make friendly_token 20 chars long
639
- * Use secure_compare
640
-
641
- * bug fix
642
- * Fix an issue causing infinite redirects in production
643
- * rails g destroy works properly with devise generators (by @andmej)
644
- * before_failure callbacks should work on test helpers (by @twinge)
645
- * rememberable cookie now is httponly by default (by @JamesFerguson)
646
- * Add missing confirmation_keys (by @JohnPlummer)
647
- * Ensure after_* hooks are called on RegistrationsController
648
- * When using database_authenticatable Devise will now only create an email field when appropriate (if using default authentication_keys or custom authentication_keys with email included)
649
- * Ensure stateless token does not trigger timeout (by @pixelauthority)
650
- * Implement handle_unverified_request for Rails 3.0.4 compatibility and improve FailureApp reliance on symbols
651
- * Consider namespaces while generating routes
652
- * Custom failure apps no longer ignored in test mode (by @jaghion)
653
- * Do not depend on ActiveModel::Dirty
654
- * Manual sign_in now triggers remember token
655
- * Be sure to halt strategies on failures
656
- * Consider SCRIPT_NAME on Omniauth paths
657
- * Reset failed attempts when lock is expired
658
- * Ensure there is no Mongoid injection
3
+ * Support added to Rails 5 (by @twalpole).
4
+ * Devise no longer supports Rails 3.2 and 4.0.
5
+ * Devise no longer supports Ruby 1.9 and 2.0.
659
6
 
660
7
  * deprecations
661
- * Deprecated anybody_signed_in? in favor of signed_in? (by @gavinhughes)
662
- * Removed --haml and --slim view templates
663
- * Devise::OmniAuth helpers were deprecated and removed in favor of Omniauth.config.test_mode
664
-
665
- ### 1.2.rc - 2010-10-25
666
-
667
- * deprecations
668
- * cookie_domain is deprecated in favor of cookie_options
669
- * after_update_path_for can no longer be defined in ApplicationController
670
-
671
- * enhancements
672
- * Added OmniAuth support
673
- * Added ORM adapter to abstract ORM iteraction
674
- * sign_out_via is available in the router to configure the method used for sign out (by @martinrehfeld)
675
- * Improved Ajax requests handling in failure app (by @spastorino)
676
- * Added request_keys to easily use request specific values (like subdomain) in authentication
677
- * Increased the size of friendly_token to 60 characters (reduces the chances of a successful brute attack)
678
- * Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by @rymai)
679
- * Extracted encryptors into :encryptable for better bcrypt support
680
- * :rememberable is now able to use salt as token if no remember_token is provided
681
- * Store the salt in session and expire the session if the user changes their password
682
- * Allow :stateless_token to be set to true avoiding users to be stored in session through token authentication
683
- * cookie_options uses session_options values by default
684
- * Sign up now checks if the user is active or not and redirect them accordingly, setting the inactive_signed_up message
685
- * Use ActiveModel#to_key instead of #id
686
- * sign_out_all_scopes now destroys the whole session
687
- * Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by @adahl)
688
-
689
- * default behavior changes
690
- * sign_out_all_scopes defaults to true as security measure
691
- * http authenticatable is disabled by default
692
- * Devise does not intercept 401 returned from applications
693
-
694
- * bugfix
695
- * after_sign_in_path_for always receives a resource
696
- * Do not execute Warden::Callbacks on Devise::TestHelpers (by @sgronblo)
697
- * Allow password recovery and account unlocking to change used keys (by @RStankov)
698
- * FailureApp now properly handles nil request.format
699
- * Fix a bug causing FailureApp to return with HTTP Auth Headers for IE7
700
- * Ensure namespaces has proper scoped views
701
- * Ensure Devise does not set empty flash messages (by @sxross)
702
-
703
- ### 1.1.6 - 2011-02-14
704
-
705
- * Use a more secure e-mail regexp
706
- * Implement Rails 3.0.4 handle unverified request
707
- * Use secure_compare to compare passwords
708
-
709
- ### 1.1.5 - 2010-11-26
710
-
711
- * bugfix
712
- * Ensure to convert keys on indifferent hash
713
-
714
- * defaults
715
- * Set config.http_authenticatable to false to avoid confusion
716
-
717
- ### 1.1.4 - 2010-11-25
718
-
719
- * bugfix
720
- * Avoid session fixation attacks
721
-
722
- ### 1.1.3 - 2010-09-23
723
-
724
- * bugfix
725
- * Add reply-to to e-mail headers by default
726
- * Updated the views generator to respect the rails :template_engine option (by @fredwu)
727
- * Check the type of HTTP Authentication before using Basic headers
728
- * Avoid invalid_salt errors by checking salt presence (by @thibaudgg)
729
- * Forget user deletes the right cookie before logout, not remembering the user anymore (by @emtrane)
730
- * Fix for failed first-ever logins on PostgreSQL where column default is nil (by @bensie)
731
- * :default options is now honored in migrations
732
-
733
- ### 1.1.2 - 2010-08-25
734
-
735
- * bugfix
736
- * Compatibility with latest Rails routes schema
737
-
738
- ### 1.1.1 - 2010-07-26
739
-
740
- * bugfix
741
- * Fix a small bug where generated locale file was empty on devise:install
742
-
743
- ### 1.1.0 - 2010-07-25
744
-
745
- * enhancements
746
- * Rememberable module allows user to be remembered across browsers and is enabled by default (by @trevorturk)
747
- * Rememberable module allows you to activate the period the remember me token is extended (by @trevorturk)
748
- * devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
749
- * Support `as` or `devise_scope` in the router to specify controller access scope
750
- * HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by @pellja)
751
-
752
- * bug fix
753
- * Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts
754
- * Devise should respect script_name and path_info contracts
755
- * Fix a bug when accessing a path with (.:format) (by @klacointe)
756
- * Do not add unlock routes unless unlock strategy is email or both
757
- * Email should be case insensitive
758
- * Store classes as string in session, to avoid serialization and stale data issues
759
-
760
- * deprecations
761
- * use_default_scope is deprecated and has no effect. Use :as or :devise_scope in the router instead
762
-
763
- ### 1.1.rc2 - 2010-06-22
764
-
765
- * enhancements
766
- * Allow to set cookie domain for the remember token. (by @mantas)
767
- * Added navigational formats to specify when it should return a 302 and when a 401.
768
- * Added authenticate(scope) support in routes (by @wildchild)
769
- * Added after_update_path_for to registrations controller (by @thedelchop)
770
- * Allow the mailer object to be replaced through config.mailer = "MyOwnMailer"
771
-
772
- * bug fix
773
- * Fix a bug where session was timing out on sign out
774
-
775
- * deprecations
776
- * bcrypt is now the default encryptor
777
- * devise.mailer.confirmations_instructions now should be devise.mailer.confirmations_instructions.subject
778
- * devise.mailer.user.confirmations_instructions now should be devise.mailer.confirmations_instructions.user_subject
779
- * Generators now use Rails 3 syntax (devise:install) instead of devise_install
780
-
781
- ### 1.1.rc1 - 2010-04-14
782
-
783
- * enhancements
784
- * Rails 3 compatibility
785
- * All controllers and views are namespaced, for example: Devise::SessionsController and "devise/sessions"
786
- * Devise.orm is deprecated. This reduces the required API to hook your ORM with devise
787
- * Use metal for failure app
788
- * HTML e-mails now have proper formatting
789
- * Allow to give :skip and :controllers in routes
790
- * Move trackable logic to the model
791
- * E-mails now use any template available in the filesystem. Easy to create multipart e-mails
792
- * E-mails asks headers_for in the model to set the proper headers
793
- * Allow to specify haml in devise_views
794
- * Compatibility with Mongoid
795
- * Make config.devise available on config/application.rb
796
- * TokenAuthenticatable now works with HTTP Basic Auth
797
- * Allow :unlock_strategy to be :none and add :lock_strategy which can be :failed_attempts or none. Setting those values to :none means that you want to handle lock and unlocking by yourself
798
- * No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3
799
- * :activatable is included by default in your models
800
-
801
- * bug fix
802
- * Fix a bug with STI
803
-
804
- * deprecations
805
- * Rails 3 compatible only
806
- * Removed support for MongoMapper
807
- * Scoped views are no longer "sessions/users/new". Now use "users/sessions/new"
808
- * Devise.orm is deprecated, just require "devise/orm/YOUR_ORM" instead
809
- * Devise.default_url_options is deprecated, just modify ApplicationController.default_url_options
810
- * All messages under devise.sessions, except :signed_in and :signed_out, should be moved to devise.failure
811
- * :as and :scope in routes is deprecated. Use :path and :singular instead
812
-
813
- ### 1.0.8 - 2010-06-22
814
-
815
- * enhancements
816
- * Support for latest MongoMapper
817
- * Added anybody_signed_in? helper (by @SSDany)
818
-
819
- * bug fix
820
- * confirmation_required? is properly honored on active? calls. (by @paulrosania)
821
-
822
- ### 1.0.7 - 2010-05-02
823
-
824
- * bug fix
825
- * Ensure password confirmation is always required
826
-
827
- * deprecations
828
- * authenticatable was deprecated and renamed to database_authenticatable
829
- * confirmable is not included by default on generation
830
-
831
- ### 1.0.6 - 2010-04-02
832
-
833
- * bug fix
834
- * Do not allow unlockable strategies based on time to access a controller.
835
- * Do not send unlockable email several times.
836
- * Allow controller to upstram custom! failures to Warden.
837
-
838
- ### 1.0.5 - 2010-03-25
839
-
840
- * bug fix
841
- * Use prepend_before_filter in require_no_authentication.
842
- * require_no_authentication on unlockable.
843
- * Fix a bug when giving an association proxy to devise.
844
- * Do not use lock! on lockable since it's part of ActiveRecord API.
845
-
846
- ### 1.0.4 - 2010-03-02
847
-
848
- * bug fix
849
- * Fixed a bug when deleting an account with rememberable
850
- * Fixed a bug with custom controllers
851
-
852
- ### 1.0.3 - 2010-02-22
853
-
854
- * enhancements
855
- * HTML e-mails now have proper formatting
856
- * Do not remove MongoMapper options in find
857
-
858
- ### 1.0.2 - 2010-02-17
859
-
860
- * enhancements
861
- * Allows you set mailer content type (by @glennr)
862
-
863
- * bug fix
864
- * Uses the same content type as request on http authenticatable 401 responses
865
-
866
- ### 1.0.1 - 2010-02-16
867
-
868
- * enhancements
869
- * HttpAuthenticatable is not added by default automatically.
870
- * Avoid mass assignment error messages with current password.
871
-
872
- * bug fix
873
- * Fixed encryptors autoload
874
-
875
- ### 1.0.0 - 2010-02-08
876
-
877
- * deprecation
878
- * :old_password in update_with_password is deprecated, use :current_password instead
879
-
880
- * enhancements
881
- * Added Registerable
882
- * Added Http Basic Authentication support
883
- * Allow scoped_views to be customized per controller/mailer class
884
- * Allow authenticatable to used in change_table statements
885
-
886
- ### 0.9.2 - 2010-02-04
887
-
888
- * bug fix
889
- * Ensure inactive user cannot sign in
890
- * Ensure redirect to proper url after sign up
891
-
892
- * enhancements
893
- * Added gemspec to repo
894
- * Added token authenticatable (by @grimen)
895
-
896
- ### 0.9.1 - 2010-01-24
897
-
898
- * bug fix
899
- * Allow bigger salt size (by @jgeiger)
900
- * Fix relative url root
901
-
902
- ### 0.9.0 - 2010-01-20
903
-
904
- * deprecation
905
- * devise :all is deprecated
906
- * :success and :failure flash messages are now :notice and :alert
907
-
908
- * enhancements
909
- * Added devise lockable (by @mhfs)
910
- * Warden 0.9.0 compatibility
911
- * Mongomapper 0.6.10 compatibility
912
- * Added Devise.add_module as hooks for extensions (by @grimen)
913
- * Ruby 1.9.1 compatibility (by @grimen)
914
-
915
- * bug fix
916
- * Accept path prefix not starting with slash
917
- * url helpers should rely on find_scope!
918
-
919
- ### 0.8.2 - 2010-01-12
920
-
921
- * enhancements
922
- * Allow Devise.mailer_sender to be a proc (by @grimen)
923
-
924
- * bug fix
925
- * Fix bug with passenger, update is required to anyone deploying on passenger (by @dvdpalm)
926
-
927
- ### 0.8.1 - 2010-01-07
928
-
929
- * enhancements
930
- * Move salt to encryptors
931
- * Devise::Lockable
932
- * Moved view links into partial and I18n'ed them
933
-
934
- * bug fix
935
- * Bcrypt generator was not being loaded neither setting the proper salt
936
-
937
- ### 0.8.0 - 2010-01-06
938
-
939
- * enhancements
940
- * Warden 0.8.0 compatibility
941
- * Add an easy for map.connect "sign_in", :controller => "sessions", :action => "new" to work
942
- * Added :bcrypt encryptor (by @capotej)
943
-
944
- * bug fix
945
- * sign_in_count is also increased when user signs in via password change, confirmation, etc..
946
- * More DataMapper compatibility (by @lancecarlson)
947
-
948
- * deprecation
949
- * Removed DeviseMailer.sender
950
-
951
- ### 0.7.5 - 2010-01-01
952
-
953
- * enhancements
954
- * Set a default value for mailer to avoid find_template issues
955
- * Add models configuration to MongoMapper::EmbeddedDocument as well
956
-
957
- ### 0.7.4 - 2009-12-21
958
-
959
- * enhancements
960
- * Extract Activatable from Confirmable
961
- * Decouple Serializers from Devise modules
962
-
963
- ### 0.7.3 - 2009-12-15
964
-
965
- * bug fix
966
- * Give scope to the proper model validation
967
-
968
- * enhancements
969
- * Mail views are scoped as well
970
- * Added update_with_password for authenticatable
971
- * Allow render_with_scope to accept :controller option
972
-
973
- ### 0.7.2 - 2009-12-14
974
-
975
- * deprecation
976
- * Renamed reset_confirmation! to resend_confirmation!
977
- * Copying locale is part of the installation process
978
-
979
- * bug fix
980
- * Fixed render_with_scope to work with all controllers
981
- * Allow sign in with two different users in Devise::TestHelpers
982
-
983
- ### 0.7.1 - 2009-12-09
984
-
985
- * enhancements
986
- * Small enhancements for other plugins compatibility (by @grimen)
987
-
988
- ### 0.7.0 - 2009-12-08
989
-
990
- * deprecations
991
- * :authenticatable is not included by default anymore
992
-
993
- * enhancements
994
- * Improve loading process
995
- * Extract SessionSerializer from Authenticatable
996
-
997
- ### 0.6.3 - 2009-12-02
998
-
999
- * bug fix
1000
- * Added trackable to migrations
1001
- * Allow inflections to work
1002
-
1003
- ### 0.6.2 - 2009-11-25
1004
-
1005
- * enhancements
1006
- * More DataMapper compatibility
1007
- * Devise::Trackable - track sign in count, timestamps and ips
1008
-
1009
- ### 0.6.1 - 2009-11-24
1010
-
1011
- * enhancements
1012
- * Devise::Timeoutable - timeout sessions without activity
1013
- * DataMapper now accepts conditions
1014
-
1015
- ### 0.6.0 - 2009-11-22
1016
-
1017
- * deprecations
1018
- * :authenticatable is still included by default, but yields a deprecation warning
1019
-
1020
- * enhancements
1021
- * Added DataMapper support
1022
- * Remove store_location from authenticatable strategy and add it to failure app
1023
- * Allow a strategy to be placed after authenticatable
1024
- * Do not rely attribute? methods, since they are not added on Datamapper
1025
-
1026
- ### 0.5.6 - 2009-11-21
1027
-
1028
- * enhancements
1029
- * Do not send nil to build (DataMapper compatibility)
1030
- * Allow to have scoped views
1031
-
1032
- ### 0.5.5 - 2009-11-20
1033
-
1034
- * enhancements
1035
- * Allow overwriting find for authentication method
1036
- * Remove Ruby 1.8.7 dependency
1037
-
1038
- ### 0.5.4 - 2009-11-19
1039
-
1040
- * deprecations
1041
- * Deprecate :singular in devise_for and use :scope instead
1042
-
1043
- * enhancements
1044
- * Create after_sign_in_path_for and after_sign_out_path_for hooks to be
1045
- overwriten in ApplicationController
1046
- * Create sign_in_and_redirect and sign_out_and_redirect helpers
1047
- * Warden::Manager.default_scope is automatically configured to the first given scope
1048
-
1049
- ### 0.5.3 - 2009-11-18
1050
-
1051
- * bug fix
1052
- * MongoMapper now converts DateTime to Time
1053
- * Ensure all controllers are unloadable
1054
-
1055
- * enhancements
1056
- * Moved friendly_token to Devise
1057
- * Added Devise.all, so you can freeze your app strategies
1058
- * Added Devise.apply_schema, so you can turn it to false in Datamapper or MongoMapper
1059
- in cases you don't want it be handlded automatically
1060
-
1061
- ### 0.5.2 - 2009-11-17
1062
-
1063
- * enhancements
1064
- * Improved sign_in and sign_out helpers to accepts resources
1065
- * Added stored_location_for as a helper
1066
- * Added test helpers
1067
-
1068
- ### 0.5.1 - 2009-11-15
1069
-
1070
- * enhancements
1071
- * Added serializers based on Warden ones
1072
- * Allow authentication keys to be set
1073
-
1074
- ### 0.5.0 - 2009-11-13
1075
-
1076
- * bug fix
1077
- * Fixed a bug where remember me module was not working properly
1078
-
1079
- * enhancements
1080
- * Moved encryption strategy into the Encryptors module to allow several algorithms (by @mhfs)
1081
- * Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by @mhfs)
1082
- * Added support for MongoMapper (by @shingara)
1083
-
1084
- ### 0.4.3 - 2009-11-10
1085
-
1086
- * bug fix
1087
- * Authentication just fails if user cannot be serialized from session, without raising errors;
1088
- * Default configuration values should not overwrite user values;
1089
-
1090
- ### 0.4.2 - 2009-11-06
1091
-
1092
- * deprecations
1093
- * Renamed mail_sender to mailer_sender
1094
-
1095
- * enhancements
1096
- * skip_before_filter added in Devise controllers
1097
- * Use home_or_root_path on require_no_authentication as well
1098
- * Added devise_controller?, useful to select or reject filters in ApplicationController
1099
- * Allow :path_prefix to be given to devise_for
1100
- * Allow default_url_options to be configured through devise (:path_prefix => "/:locale" is now supported)
1101
-
1102
- ### 0.4.1 - 2009-11-04
1103
-
1104
- * bug fix
1105
- * Ensure options can be set even if models were not loaded
1106
-
1107
- ### 0.4.0 - 2009-11-03
1108
-
1109
- * deprecations
1110
- * Notifier is deprecated, use DeviseMailer instead. Remember to rename
1111
- app/views/notifier to app/views/devise_mailer and I18n key from
1112
- devise.notifier to devise.mailer
1113
- * :authenticable calls are deprecated, use :authenticatable instead
1114
-
1115
- * enhancements
1116
- * Allow devise to be more agnostic and do not require ActiveRecord to be loaded
1117
- * Allow Warden::Manager to be configured through Devise
1118
- * Created a generator which creates an initializer
1119
-
1120
- ### 0.3.0 - 2009-10-30
1121
-
1122
- * bug fix
1123
- * Allow yml messages to be configured by not using engine locales
1124
-
1125
- * deprecations
1126
- * Renamed confirm_in to confirm_within
1127
- * Do not send confirmation messages when user changes their e-mail
1128
- * Renamed authenticable to authenticatable and added deprecation warnings
1129
-
1130
- ### 0.2.3 - 2009-10-29
1131
-
1132
- * enhancements
1133
- * Ensure fail! works inside strategies
1134
- * Make unauthenticated message (when you haven't signed in) different from invalid message
1135
-
1136
- * bug fix
1137
- * Do not redirect on invalid authenticate
1138
- * Allow model configuration to be set to nil
1139
-
1140
- ### 0.2.2 - 2009-10-28
1141
-
1142
- * bug fix
1143
- * Fix a bug when using customized resources
1144
-
1145
- ### 0.2.1 - 2009-10-27
1146
-
1147
- * refactor
1148
- * Clean devise_views generator to use devise existing views
1149
-
1150
- * enhancements
1151
- * Create instance variables (like @user) for each devise controller
1152
- * Use Devise::Controller::Helpers only internally
1153
-
1154
- * bug fix
1155
- * Fix a bug with Mongrel and Ruby 1.8.6
1156
-
1157
- ### 0.2.0 - 2009-10-24
1158
-
1159
- * enhancements
1160
- * Allow option :null => true in authenticable migration
1161
- * Remove attr_accessible calls from devise modules
1162
- * Customizable time frame for rememberable with :remember_for config
1163
- * Customizable time frame for confirmable with :confirm_in config
1164
- * Generators for creating a resource and copy views
1165
-
1166
- * optimize
1167
- * Do not load hooks or strategies if they are not used
1168
-
1169
- * bug fixes
1170
- * Fixed requiring devise strategies
1171
-
1172
- ### 0.1.1 - 2009-10-21
8
+ * The `devise_parameter_sanitize` API has changed:
9
+ The `for` method was deprecated in favor of `permit`:
1173
10
 
1174
- * bug fixes
1175
- * Fixed requiring devise mapping
11
+ ```ruby
12
+ def configure_permitted_parameters
13
+ devise_parameter_sanitizer.for(:sign_up) << :subscribe_newsletter
14
+ # Should become the following.
15
+ devise_parameter_sanitizer.permit(:sign_up, keys: [:subscribe_newsletter])
16
+ end
17
+ ```
1176
18
 
1177
- ### 0.1.0 - 2009-10-21
19
+ The customization through instance methods on the sanitizer implementation
20
+ should be done through it's `initialize` method:
1178
21
 
1179
- * Devise::Authenticable
1180
- * Devise::Confirmable
1181
- * Devise::Recoverable
1182
- * Devise::Validatable
1183
- * Devise::Migratable
1184
- * Devise::Rememberable
22
+ ```ruby
23
+ class User::ParameterSanitizer < Devise::ParameterSanitizer
24
+ def sign_up
25
+ default_params.permit(:username, :email)
26
+ end
27
+ end
1185
28
 
1186
- * SessionsController
1187
- * PasswordsController
1188
- * ConfirmationsController
29
+ # The `sign_up` method can be a `permit` call on the sanitizer `initialize`.
1189
30
 
1190
- * Create an example app
1191
- * devise :all, :except => :rememberable
1192
- * Use sign_in and sign_out in SessionsController
31
+ class User::ParameterSanitizer < Devise::ParameterSanitizer
32
+ def initialize(*)
33
+ super
34
+ permit(:sign_up, keys: [:username, :email])
35
+ end
36
+ end
37
+ ```
1193
38
 
1194
- * Mailer subjects namespaced by model
1195
- * Allow stretches and pepper per model
39
+ You can check more examples and explanations on the [README section](/plataformatec/devise#strong-parameters)
40
+ and on the [ParameterSanitizer docs](lib/devise/parameter_sanitizer.rb).
1196
41
 
1197
- * Store session[:return_to] in session
1198
- * Sign user in automatically after confirming or changing it's password
42
+ Please check [3-stable](https://github.com/plataformatec/devise/blob/3-stable/CHANGELOG.md)
43
+ for previous changes.