brainsome_devise 3.3.0

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