1
0
Fork 0
mirror of https://github.com/heartcombo/devise.git synced 2022-11-09 12:18:31 -05:00
heartcombo--devise/CHANGELOG.md

1085 lines
40 KiB
Markdown
Raw Normal View History

2014-08-13 12:41:14 -04:00
### Unreleased
* enhancements
2014-09-01 18:38:07 -04:00
* The Simple Form templates follow the same change from 3.3.0 by using `Log in` and adding
a hint about the minimum password length when `validatable` is enabled (by @aried3r)
2014-08-13 12:41:14 -04:00
* bug fixes
### 3.3.0
* enhancements
* Support multiple warden configuration blocks on devise configuration. (by @rossta)
* Previously, when a user signed out, all remember me tokens for all sessions/browsers would be
invalidated, and this behavior could not be changed. This behavior is now configurable via
`expire_all_remember_me_on_sign_out`. The default continues to be true. (by @laurocaetano)
2014-04-04 03:47:11 -04:00
* Default email messages was updated with grammar fixes, check the diff on
#2906 for the updated copy (by @p-originate)
* Allow a resource to be found based on its encrypted password token (by @karlentwistle)
2014-08-06 12:23:52 -04:00
* Adds `devise_group`, a macro to define controller helpers for multiple mappings at once. (by @dropletzz)
2014-08-11 16:36:57 -04:00
* The default views now use `Log in` instead of `Sign in` and have a hint about the minimum password length if
the current scope is using the `validatable` module (by @alexsoble)
2014-04-04 03:47:11 -04:00
* bug fix
* Check if there is a signed in user before executing the `SessionsController#destroy`.
* `SessionsController#destroy` no longer yields the `resource` to receiving block,
since the resource isn't loaded in the action. If you need access to the current
resource when overring the action use the scope helper (like `current_user`) before
2014-04-04 03:47:11 -04:00
calling `super`
* Serialize the `last_request_at` entry as an Integer
* Ensure registration controller block yields happen on failure in addition to success (by @dpehrson)
* Only valid paths will be stored for redirections (by @parallel588)
2014-03-17 10:16:38 -04:00
### 3.2.4
2014-03-17 11:11:01 -04:00
* enhancements
2014-02-21 16:33:59 -05:00
* `bcrypt` dependency updated due https://github.com/codahale/bcrypt-ruby/pull/86.
* View generator now can generate specific views with the `-v` flag, like `rails g devise:views -v sessions` (by @kayline)
2014-02-21 16:33:59 -05:00
2014-02-20 13:30:00 -05:00
### 3.2.3
* enhancements
* Devise will use the `secret_key_base` on Rails 4+ applications as its `secret_key`.
You can change this and use your own secret by changing the `devise.rb` initializer.
2014-02-20 13:30:00 -05:00
* bug fix
* Migrations will be properly generated when using rails 4.1.0.
2013-11-25 06:00:21 -05:00
### 3.2.2
* bug fix
* Ensure timeoutable works when `sign_out_all_scopes` is false (by @louman)
* Keep the query string when storing location (by @csexton)
* Require rails generator base class in devise generators
2013-11-13 07:32:59 -05:00
### 3.2.1
2013-11-13 08:00:04 -05:00
Security announcement: http://blog.plataformatec.com.br/2013/11/e-mail-enumeration-in-devise-in-paranoid-mode
2013-11-13 07:32:59 -05:00
* enhancements
* Add `store_location_for` helper and ensure it is safe (by @matthewrudy and @homakov)
* Add `yield` around resource methods in Devise controllers (by @edelpero)
* bug fix
* Bring `password_digest` back to fix compatibility with `devise-encryptable`
2013-11-13 08:00:04 -05:00
* Avoid e-mail enumeration on sign in when in paranoid mode
2013-11-13 07:32:59 -05:00
2013-11-06 15:39:16 -05:00
### 3.2.0
2013-09-02 18:23:15 -04:00
2013-09-03 07:47:57 -04:00
* enhancements
2013-09-02 18:23:15 -04:00
* Previously deprecated token authenticatable and insecure lookups have been removed
2013-10-06 07:19:19 -04:00
* Add a class method so you can encrypt passwords from fixtures (by @tenderlove)
2013-10-20 10:55:51 -04:00
* Send custom message when user enters invalid password and it has only one attempt
2013-12-02 04:02:17 -05:00
to enter correct password before their account will be locked (by @Lightpower)
* Prevent mutation of values assigned to case and whitespace santitized members (by @iamvery)
2013-11-06 14:34:38 -05:00
* Separate redirects and flash messages in `navigational_formats` and `flashing_formats` (by @ssendev)
* bug fix
* A GET to sign_in page shouldn't extend the session (by @drewish)
* Splat the arguments to `strong_parameters#permit` to work around a limitation in the `strong_parameters` gem (by @memberful)
* 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)
* Ensure timeoutable hook respects `Devise.sign_out_all_scopes` configuration
2013-09-02 18:23:15 -04:00
* deprecations
* `expire_session_data_after_sign_in!` has been deprecated in favor of `expire_data_after_sign_in!`
2013-10-04 14:04:23 -04:00
### 3.1.1
* bug fix
* Improve default message which asked users to sign in even when they were already signed (by @gregates)
* Improve error message for when the config.secret_key is missing
### 3.1.0
2013-08-09 04:30:29 -04:00
Security announcement: http://blog.plataformatec.com.br/2013/08/devise-3-1-now-with-more-secure-defaults/
2013-08-09 04:30:29 -04:00
* backwards incompatible changes
* 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
2013-08-27 06:05:54 -04:00
* 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`
2013-08-30 10:38:34 -04:00
* Sanitization of parameters should be done by calling `devise_parameter_sanitizer.sanitize(:action)` instead of `devise_parameter_sanitizer.for(:action)`
2013-08-09 04:30:29 -04:00
* deprecations
* Token authentication is deprecated
2013-08-08 16:37:15 -04:00
* enhancements
* Better security defaults
2013-08-11 16:30:19 -04:00
* Allow easier customization of parameter sanitizer (by @alexpeattie)
2013-08-08 16:37:15 -04:00
* bug fix
2013-08-18 04:46:00 -04:00
* Do not confirm e-mail after password reset (by @moll)
2013-08-09 04:30:29 -04:00
* Do not sign in after confirmation
* Do not store confirmation, unlock and reset password tokens directly in the database
2013-08-08 16:37:15 -04:00
* Do not compare directly against confirmation, unlock and reset password tokens
* Skip storage for cookies on unverified requests
### 3.0.2
2013-08-09 04:30:29 -04:00
* bug fix
* Skip storage for cookies on unverified requests
2013-08-08 16:37:15 -04:00
### 3.0.1
2013-07-26 03:22:59 -04:00
2013-08-09 04:30:29 -04:00
Security announcement: http://blog.plataformatec.com.br/2013/08/csrf-token-fixation-attacks-in-devise/
2013-07-26 03:22:59 -04:00
* enhancements
* Add after_confirmation callback
* bug fix
* When using rails 3.2, the generator adds 'attr_accessible' to the model (by @jcoyne)
2013-08-02 17:14:54 -04:00
* 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.
### 3.0.0
* enhancements
2013-07-09 03:05:19 -04:00
* Rails 4 and Strong Parameters compatibility (by @carlosantoniodasilva, @josevalim, @latortuga, @lucasmazza, @nashby, @rafaelfranca, @spastorino)
* Drop support for Rails < 3.2 and Ruby < 1.9.3
2013-09-02 18:02:11 -04:00
* Enable to skip sending reconfirmation email when reconfirmable is on and `skip_confirmation_notification!` is invoked (by @tkhr)
2013-07-09 03:05:19 -04:00
* bug fix
* Errors on unlock are now properly reflected on the first `unlock_keys`
### 2.2.4
* enhancements
* Add `destroy_with_password` to `DatabaseAuthenticatable`. Allows destroying a record when `:current_password` matches, similarly to how `update_with_password` works. (by @michiel3)
2013-04-22 10:51:54 -04:00
* Allow to override path after password resetting (by @worker8)
2013-02-25 18:23:43 -05:00
* Add `#skip_confirmation_notification!` method to `Confirmable`. Allows skipping confirmation email without auto-confirming. (by @gregates)
* allow_unconfirmed_access_for config from `:confirmable` module can be set to `nil` that means unconfirmed access for unlimited time. (by @nashby)
2013-04-14 01:10:48 -04:00
* Support Rails' token strategy on authentication (by @robhurring)
2013-04-15 14:50:06 -04:00
* Support explicitly setting the http authentication key via `config.http_authentication_key` (by @neo)
* bug fix
* Do not redirect when accessing devise API via JSON. (by @sebastianwr)
* Generating scoped devise views now uses the correct scoped shared links partial instead of the default devise one (by @nashby)
* Fix inheriting mailer templates from `Devise::Mailer`
2013-04-14 01:10:48 -04:00
* Fix a bug when procs are used as default mailer in Devise (by @tomasv)
* backwards incompatible changes
* 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
### 2.2.3
2013-01-26 13:43:17 -05:00
2013-02-01 11:30:43 -05:00
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/
2013-01-26 13:43:17 -05:00
* bug fix
* Require string conversion for all values
### 2.2.2
2013-01-15 15:03:15 -05:00
* bug fix
* Fix bug when checking for reconfirmable in templates
### 2.2.1
* bug fix
* Fix regression with case_insensitive_keys
* Fix regression when password is blank when it is invalid
### 2.2.0
2013-01-08 15:30:43 -05:00
* backwards incompatible changes
* `headers_for` is deprecated, customize the mailer directly instead
* All mailer methods now expect a second argument with delivery options
2012-12-13 03:20:46 -05:00
* Default minimum password length is now 8 (by @carlosgaldino)
2013-01-08 15:30:43 -05:00
* Support alternate sign in error message when email record does not exist (this adds a new I18n key to the locale file) (by @gabetax)
2012-12-13 03:20:46 -05:00
* DeviseController responds only to HTML requests by default (call `DeviseController.respond_to` or `ApplicationController.respond_to` to add new formats)
* Support Mongoid 3 onwards (by @durran)
* enhancements
2013-01-08 15:30:43 -05:00
* Fix unlockable which could leak account existence on paranoid mode (by @latortuga)
* Confirmable now has a confirm_within option to set a period while the confirmation token is still valid (by @promisedlandt)
2012-12-13 03:20:46 -05:00
* Flash messages in controller now respects `resource_name` (by @latortuga)
2012-10-26 05:21:16 -04:00
* Separate `sign_in` and `sign_up` on RegistrationsController (by @rubynortheast)
* Add autofocus to default views (by @Radagaisus)
2012-11-10 15:07:34 -05:00
* Unlock user on password reset (by @marcinb)
2012-12-13 02:43:43 -05:00
* Allow validation callbacks to apply to virtual attributes (by @latortuga)
2012-07-06 11:03:25 -04:00
2012-06-28 06:13:42 -04:00
* bug fix
* unconfirmed_email now uses the proper e-mail on salutation
2012-12-13 02:43:43 -05:00
* Fix default email_regexp config to not allow spaces (by @kukula)
2012-06-28 06:13:42 -04:00
* Fix a regression introduced on warden 1.2.1 (by @ejfinneran)
* Properly camelize omniauth strategies (by @saizai)
* Do not set flash messages for non navigational requests on session sign out (by @mathieul)
* Set the proper fields as required on the lockable module (by @nickhoffman)
* Respects Devise mailer default's reply_to (by @mrchrisadams)
2012-11-10 15:07:34 -05:00
* Properly assign resource on `sign_in` related action (by @adammcnamara)
* `update_with_password` doesn't change encrypted password when it is invalid (by @nashby)
* Properly handle namespaced models on Active Record generator (by @nashby)
2012-06-28 06:13:42 -04:00
### 2.1.4
* bugfix
* Do not confirm account after reset password
### 2.1.3
* bugfix
* Require string conversion for all values
### 2.1.2
2012-06-16 09:50:13 -04:00
2012-06-28 06:13:42 -04:00
* enhancements
2012-06-19 05:27:30 -04:00
* Handle backwards incompatibility between Rails 3.2.6 and Thor 0.15.x
* bug fix
* Fix regression on strategy validation on previous release
### 2.1.1 (yanked)
2012-06-16 09:50:13 -04:00
* enhancements
2012-06-16 09:50:13 -04:00
* `sign_out_all_scopes` now locks warden and does not allow new logins in the same action
* `Devise.omniauth_path_prefix` is available to configure omniauth path prefix
* Redirect to sign in page when trying to access password#edit without a token (by @gbataille)
2012-06-16 06:38:02 -04:00
* Allow a lambda in authenticate(d) routes helpers to further select the scope
* Removed warnings on Rails 3.2.6 (by @nashby)
* bug fix
* `update_with_password` now relies on assign_attributes and forwards the :as option (by @wtn)
* Do not trigger timeout on sign in related actions
* Timeout does not explode when reset_authentication_token! is accidentally defined by Active Model (by @remomueller)
* deprecations
* Strategy#validate() no longer validates nil resources
### 2.1.0
2012-05-17 06:25:07 -04:00
2012-05-06 06:53:27 -04:00
* enhancements
2012-05-17 06:25:07 -04:00
* Add `check_fields!(model_class)` method on Devise::Models to check if the model includes the fields that Devise uses
* Add `skip_reconfirmation!` to skip reconfirmation
2012-05-06 06:53:27 -04:00
* Devise model generator now works with engines
2012-05-09 13:52:47 -04:00
* Devise encryptable was moved to its new gem (http://github.com/plataformatec/devise-encryptable)
2012-05-06 06:53:27 -04:00
* deprecations
* Deprecations warnings added on Devise 2.0 are now removed with their features
2012-05-17 06:25:07 -04:00
* All devise modules should now have a `required_fields(klass)` module method to help gathering missing attributes
* `use_salt_as_remember_token` and `apply_schema` does not have any effect since 2.0 and are now deprecated
* `valid_for_authentication?` must now return a boolean
2012-05-06 06:53:27 -04:00
2012-03-19 16:15:32 -04:00
* bug fix
2012-05-17 06:25:07 -04:00
* Ensure after sign in hook is not called without a resource
* Fix a term: now on Omniauth related flash messages, we say that we're authenticating from an omniauth provider instead of authorizing
* Fixed redirect when authenticated mounted apps (by @hakanensari)
2012-05-09 12:27:44 -04:00
* Ensure the failure app still respects config.relative_url_root
2012-03-26 11:01:21 -04:00
* `/users/sign_in` doesn't choke on protected attributes used to select sign in scope (by @Paymium)
* `failed_attempts` is set to zero after any sign in (including via reset password) (by @rodrigoflores)
* Added token expiration on timeout (by @antiarchitect)
* Do not accidentally mark `_prefixes` as private
2012-05-06 06:53:27 -04:00
* Better support for custom strategies on test helpers (by @mattconnolly)
* Return `head :no_content` in SessionsController now that most JS libraries handle it (by @julianvargasalvarez)
* Reverted moving devise/shared/_links.erb to devise/_links.erb
2012-03-19 16:15:32 -04:00
### 2.0.4
2012-02-17 03:32:09 -05:00
Notes: https://github.com/plataformatec/devise/wiki/How-To:-Upgrade-to-Devise-2.0
* bug fix
2012-03-09 12:12:43 -05:00
* Fix when :host is used with devise_for (by @mreinsch)
2012-02-17 03:32:09 -05:00
* Fix a regression that caused Warden to be initialized too late
### 2.0.3 (yanked)
2012-02-16 13:07:10 -05:00
2012-02-16 06:31:04 -05:00
* bug fix
* Ensure warning is not shown by mistake on apps with mounted engines
* Fixes related to remember_token and rememberable_options
* Ensure serializable_hash does not depend on accessible attributes
2012-02-16 12:34:41 -05:00
* Ensure that timeout callback does not run on sign out action
2012-02-16 06:31:04 -05:00
### 2.0.2
2012-01-02 14:16:11 -05:00
2012-02-15 11:26:13 -05:00
* enhancements
* Add devise_i18n_options to customize I18n message
* bug fix
* Ensure Devise.available_router_name defaults to :main_app
* Set autocomplete to off for password on edit forms
* Better error messages in case a trackable model can't be saved
* Show a warning in case someone gives a pluralized name to devise generator
* Fix test behavior for rspec subject requests (by @sj26)
### 2.0.1
2012-02-15 11:26:13 -05:00
2012-02-09 05:11:12 -05:00
* enhancements
* Improved error messages on deprecation warnings
* Hide Devise's internal generators from `rails g` command
* bug fix
* Removed tmp and log files from gem
### 2.0.0
2012-02-09 05:11:12 -05:00
* enhancements
2012-01-26 13:40:04 -05:00
* Add support for e-mail reconfirmation on change (by @Mandaryn and @heimidal)
* Redirect users to sign in page after unlock (by @nashby)
* Redirect to the previous URL on timeout
* Inherit from the same Devise parent controller (by @sj26)
* Allow parent_controller to be customizable via Devise.parent_controller, useful for engines
* Allow router_name to be customizable via Devise.router_name, useful for engines
2012-01-26 13:40:04 -05:00
* Allow alternate ORMs to run compatibility setup code before Authenticatable is included (by @jm81)
* deprecation
2012-01-26 13:40:04 -05:00
* Devise now only supports Rails 3.1 forward
* Devise.confirm_within was deprecated in favor Devise.allow_unconfirmed_access_for
* Devise.stateless_token= is deprecated in favor of appending :token_auth to Devise.skip_session_storage
* Usage of Devise.apply_schema is deprecated
* Usage of Devise migration helpers are deprecated
* Usage of Devise.remember_across_browsers was deprecated
* Usage of rememberable with remember_token was removed
* Usage of recoverable without reset_password_sent_at was removed
* Usage of Devise.case_insensitive_keys equals to false was removed
2012-01-26 13:40:04 -05:00
* Move devise/shared/_links.erb to devise/_links.erb
* Deprecated support of nested devise_for blocks
* Deprecated support to devise.registrations.reasons and devise.registrations.inactive_signed_up in favor of devise.registrations.signed_up_but_*
* Protected method render_with_scope was removed.
2011-12-04 18:01:25 -05:00
### 1.5.3
2011-12-19 06:58:34 -05:00
* bug fix
2012-01-02 14:16:40 -05:00
* Ensure delegator converts scope to symbol (by @dmitriy-kiriyenko)
2011-12-19 06:58:34 -05:00
* Ensure passing :format => false to devise_for is not permanent
* Ensure path checker does not check invalid routes
### 1.5.2
* enhancements
2012-01-02 14:16:40 -05:00
* Add support for Rails 3.1 new mass assignment conventions (by @kirs)
* Add timeout_in method to Timeoutable, it can be overridden in a model (by @lest)
* bug fix
* OmniAuth error message now shows the proper option (:strategy_class instead of :klass)
### 1.5.1
* bug fix
* Devise should not attempt to load OmniAuth strategies. Strategies should be loaded before hand by the developer or explicitly given to Devise.
### 1.5.0
* enhancements
* Timeoutable also skips tracking if skip_trackable is given
2011-11-07 06:16:38 -05:00
* devise_for now accepts :failure_app as an option
2012-01-02 14:16:40 -05:00
* Models can select the proper mailer via devise_mailer method (by @locomotivecms)
* Migration generator now uses the change method (by @nashby)
* Support to markerb templates on the mailer generator (by @sbounmy)
* Support for Omniauth 1.0 (older versions are no longer supported) (by @TamiasSibiricus)
* bug fix
* Allow idempotent API requests
* Fix bug where logs did not show 401 as status code
* Change paranoid settings to behave as success instead of as failure
* Fix bug where activation messages were shown first than the credentials error message
* Instance variables are expired after sign out
* deprecation
* redirect_location is deprecated, please use after_sign_in_path_for
* after_sign_in_path_for now redirects to session[scope_return_to] if any value is stored in it
### 1.4.9
2011-10-20 10:50:38 -04:00
* bug fix
* url helpers were not being set under some circumstances
### 1.4.8
* enhancements
* Add docs for assets pipeline and Heroku
* bug fix
* confirmation_url was not being set under some circumstances
### 1.4.7
* bug fix
* Fix backward incompatible change from 1.4.6 for those using custom controllers
### 1.4.6 (yanked)
2011-09-14 19:54:15 -04:00
* enhancements
* Allow devise_for :skip => :all
* Allow options to be passed to authenticate_user!
* Allow --skip-routes to devise generator
* Add allow_params_authentication! to make it explicit when params authentication is allowed in a controller
### 1.4.5
2011-09-08 02:36:06 -04:00
* bug fix
* Failure app tries the root path if a session one does not exist
2012-01-02 14:16:40 -05:00
* No need to finalize Devise helpers all the time (by @bradleypriest)
2011-09-08 02:36:06 -04:00
* Reset password shows proper message if user is not active
* `clean_up_passwords` sets the accessors to nil to skip validations
### 1.4.4
* bug fix
* Do not always skip helpers, instead provide :skip_helpers as option to trigger it manually
### 1.4.3
* enhancements
* Improve Rails 3.1 compatibility
* Use serialize_into_session and serialize_from_session in Warden serialize to improve extensibility
2011-07-01 07:23:31 -04:00
* bug fix
* Generator properly generates a change_table migration if a model already exists
2011-07-01 07:23:31 -04:00
* Properly deprecate setup_mail
* Fix encoding issues with email regexp
2011-08-29 08:31:06 -04:00
* Only generate helpers for the used mappings
* Wrap :action constraints in the proper hash
* deprecations
2012-01-02 17:18:57 -05:00
* 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
2011-07-01 07:23:31 -04:00
### 1.4.2
2011-06-30 14:20:13 -04:00
* bug fix
* Provide a more robust behavior to serializers and add :force_except option
### 1.4.1
2011-06-27 11:16:06 -04:00
* enhancements
* Add :defaults and :format support on router
* Add simple form generators
2012-01-02 14:16:40 -05:00
* Better localization for devise_error_messages! (by @zedtux)
2011-06-27 11:16:06 -04:00
* bug fix
* Ensure to_xml is properly white listened
* Ensure handle_unverified_request clean up any cached signed-in user
### 1.4.0
2011-06-23 08:53:05 -04:00
2011-04-19 08:24:33 -04:00
* enhancements
2013-12-02 04:02:17 -05:00
* Added authenticated and unauthenticated to the router to route the used based on their status (by @sj26)
2012-01-02 14:16:40 -05:00
* Improve e-mail regexp (by @rodrigoflores)
* Add strip_whitespace_keys and default to e-mail (by @swrobel)
* Do not run format and uniqueness validations on e-mail if it hasn't changed (by @Thibaut)
* Added update_without_password to update models but not allowing the password to change (by @fschwahn)
* Added config.paranoid, check the generator for more information (by @rodrigoflores)
2011-04-19 08:24:33 -04:00
* bug fix
* password_required? should not affect length validation
2013-12-02 04:02:17 -05:00
* User cannot access sign up and similar pages if they are already signed in through a cookie or token
2012-01-02 14:16:40 -05:00
* Do not convert booleans to strings on finders (by @xavier)
* Run validations even if current_password fails (by @crx)
* Devise now honors routes constraints (by @macmartine)
* Do not return the user resource when requesting instructions (by @rodrigoflores)
### 1.3.4
2011-04-29 08:17:33 -04:00
* bug fix
* Do not add formats if html or "*/*"
### 1.3.3
2011-04-21 13:20:48 -04:00
* bug fix
* Explicitly mark the token as expired if so
### 1.3.2
2011-04-21 08:00:47 -04:00
* bug fix
2012-01-02 14:16:40 -05:00
* Fix another regression related to reset_password_sent_at (by @alexdreher)
2011-04-21 08:00:47 -04:00
### 1.3.1
2011-04-19 04:39:56 -04:00
2011-04-17 12:06:29 -04:00
* enhancements
2012-01-02 14:16:40 -05:00
* Improve failure_app responses (by @indirect)
2011-04-19 04:39:56 -04:00
* sessions/new and registrations/new also respond to xml and json now
2011-04-17 12:06:29 -04:00
* bug fix
2012-01-02 14:16:40 -05:00
* Fix a regression that occurred if reset_password_sent_at is not present (by @stevehodgkiss)
2011-04-17 12:06:29 -04:00
### 1.3.0
2011-04-16 07:31:50 -04:00
2011-03-30 08:10:59 -04:00
* enhancements
2012-01-02 14:16:40 -05:00
* All controllers can now handle different mime types than html using Responders (by @sikachu)
* Added reset_password_within as configuration option to send the token for recovery (by @jdguyot)
* Bump password length to 128 characters (by @k33l0r)
* Add :only as option to devise_for (by @timoschilling)
* Allow to override path after sending password instructions (by @irohiroki)
* require_no_authentication has its own flash message (by @jackdempsey)
2011-03-30 08:10:59 -04:00
* bug fix
* Fix a bug where configuration options were being included too late
2012-01-02 14:16:40 -05:00
* Ensure Devise::TestHelpers can be used to tests Devise internal controllers (by @jwilger)
* valid_password? should not choke on empty passwords (by @mikel)
2011-04-16 07:19:29 -04:00
* Calling devise more than once does not include previously added modules anymore
* downcase_keys before validation
* backward incompatible changes
* 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.
### 1.2.1
2011-03-30 08:10:59 -04:00
* enhancements
* Improve update path messages
### 1.2.0
2011-03-25 10:53:59 -04:00
* bug fix
* Properly ignore path prefix on omniauthable
2011-03-15 07:52:53 -04:00
* Faster uniqueness queries
2011-03-25 10:40:21 -04:00
* Rename active? to active_for_authentication? to avoid conflicts
### 1.2.rc2
2011-03-11 14:56:50 -05:00
2010-12-25 05:11:56 -05:00
* enhancements
2011-02-15 03:45:37 -05:00
* Make friendly_token 20 chars long
2011-02-15 05:35:24 -05:00
* Use secure_compare
2010-12-25 05:11:56 -05:00
2010-12-18 03:39:55 -05:00
* bug fix
* Fix an issue causing infinite redirects in production
2012-01-02 14:16:40 -05:00
* rails g destroy works properly with devise generators (by @andmej)
* before_failure callbacks should work on test helpers (by @twinge)
* rememberable cookie now is httponly by default (by @JamesFerguson)
* Add missing confirmation_keys (by @JohnPlummer)
2011-02-15 03:45:37 -05:00
* Ensure after_* hooks are called on RegistrationsController
2011-02-15 04:07:08 -05:00
* 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)
2012-01-02 14:16:40 -05:00
* Ensure stateless token does not trigger timeout (by @pixelauthority)
2011-02-15 04:59:41 -05:00
* Implement handle_unverified_request for Rails 3.0.4 compatibility and improve FailureApp reliance on symbols
2011-02-24 15:58:51 -05:00
* Consider namespaces while generating routes
2012-01-02 14:16:40 -05:00
* Custom failure apps no longer ignored in test mode (by @jaghion)
2011-02-24 15:58:51 -05:00
* Do not depend on ActiveModel::Dirty
* Manual sign_in now triggers remember token
* Be sure to halt strategies on failures
* Consider SCRIPT_NAME on Omniauth paths
* Reset failed attempts when lock is expired
2011-03-11 14:56:50 -05:00
* Ensure there is no Mongoid injection
2010-12-18 03:39:55 -05:00
2010-11-27 11:10:44 -05:00
* deprecations
2012-01-02 14:16:40 -05:00
* Deprecated anybody_signed_in? in favor of signed_in? (by @gavinhughes)
* Removed --haml and --slim view templates
2011-02-24 15:58:51 -05:00
* Devise::OmniAuth helpers were deprecated and removed in favor of Omniauth.config.test_mode
2010-11-27 11:10:44 -05:00
### 1.2.rc
2010-11-26 06:18:21 -05:00
* deprecations
* cookie_domain is deprecated in favor of cookie_options
* after_update_path_for can no longer be defined in ApplicationController
* enhancements
2010-10-15 02:33:23 -04:00
* Added OmniAuth support
* Added ORM adapter to abstract ORM iteraction
2012-01-02 14:16:40 -05:00
* sign_out_via is available in the router to configure the method used for sign out (by @martinrehfeld)
* Improved Ajax requests handling in failure app (by @spastorino)
2010-09-25 10:10:59 -04:00
* Added request_keys to easily use request specific values (like subdomain) in authentication
* Increased the size of friendly_token to 60 characters (reduces the chances of a successful brute attack)
2012-01-02 14:16:40 -05:00
* Ensure the friendly token does not include "_" or "-" since some e-mails may not autolink it properly (by @rymai)
2010-09-25 10:10:59 -04:00
* Extracted encryptors into :encryptable for better bcrypt support
* :rememberable is now able to use salt as token if no remember_token is provided
2013-12-02 04:02:17 -05:00
* Store the salt in session and expire the session if the user changes their password
* Allow :stateless_token to be set to true avoiding users to be stored in session through token authentication
* cookie_options uses session_options values by default
2013-12-02 04:02:17 -05:00
* Sign up now checks if the user is active or not and redirect them accordingly, setting the inactive_signed_up message
2010-10-10 10:46:41 -04:00
* Use ActiveModel#to_key instead of #id
* sign_out_all_scopes now destroys the whole session
2012-01-02 14:16:40 -05:00
* Added case_insensitive_keys that automatically downcases the given keys, by default downcases only e-mail (by @adahl)
* default behavior changes
* sign_out_all_scopes defaults to true as security measure
* http authenticatable is disabled by default
* Devise does not intercept 401 returned from applications
2010-08-23 08:02:57 -04:00
* bugfix
* after_sign_in_path_for always receives a resource
2012-01-02 14:16:40 -05:00
* Do not execute Warden::Callbacks on Devise::TestHelpers (by @sgronblo)
* Allow password recovery and account unlocking to change used keys (by @RStankov)
2010-11-09 17:31:35 -05:00
* FailureApp now properly handles nil request.format
* Fix a bug causing FailureApp to return with HTTP Auth Headers for IE7
* Ensure namespaces has proper scoped views
2012-01-02 14:16:40 -05:00
* Ensure Devise does not set empty flash messages (by @sxross)
### 1.1.6
2011-02-15 05:35:24 -05:00
* Use a more secure e-mail regexp
* Implement Rails 3.0.4 handle unverified request
* Use secure_compare to compare passwords
### 1.1.5
2011-02-15 05:35:24 -05:00
* bugfix
* Ensure to convert keys on indifferent hash
* defaults
* Set config.http_authenticatable to false to avoid confusion
### 1.1.4
2010-11-20 17:18:41 -05:00
* bugfix
* Avoid session fixation attacks
### 1.1.3
* bugfix
* Add reply-to to e-mail headers by default
2012-01-02 14:16:40 -05:00
* Updated the views generator to respect the rails :template_engine option (by @fredwu)
* Check the type of HTTP Authentication before using Basic headers
2012-01-02 14:16:40 -05:00
* Avoid invalid_salt errors by checking salt presence (by @thibaudgg)
* Forget user deletes the right cookie before logout, not remembering the user anymore (by @emtrane)
* Fix for failed first-ever logins on PostgreSQL where column default is nil (by @bensie)
* :default options is now honored in migrations
### 1.1.2
2010-08-25 07:52:04 -04:00
* bugfix
* Compatibility with latest Rails routes schema
### 1.1.1
2010-07-27 10:31:49 -04:00
* bugfix
* Fix a small bug where generated locale file was empty on devise:install
### 1.1.0
* enhancements
2012-01-02 14:16:40 -05:00
* Rememberable module allows user to be remembered across browsers and is enabled by default (by @trevorturk)
* Rememberable module allows you to activate the period the remember me token is extended (by @trevorturk)
2010-06-30 06:49:41 -04:00
* devise_for can now be used together with scope method in routes but with a few limitations (check the documentation)
2010-07-26 05:52:05 -04:00
* Support `as` or `devise_scope` in the router to specify controller access scope
2012-01-02 14:16:40 -05:00
* HTTP Basic Auth can now be disabled/enabled for xhr(ajax) requests using http_authenticatable_on_xhr option (by @pellja)
2010-06-30 06:49:41 -04:00
* bug fix
2010-07-01 07:58:08 -04:00
* Fix a bug in Devise::TestHelpers where current_user was returning a Response object for non active accounts
* Devise should respect script_name and path_info contracts
2012-01-02 14:16:40 -05:00
* Fix a bug when accessing a path with (.:format) (by @klacointe)
* Do not add unlock routes unless unlock strategy is email or both
* Email should be case insensitive
* Store classes as string in session, to avoid serialization and stale data issues
* deprecations
* use_default_scope is deprecated and has no effect. Use :as or :devise_scope in the router instead
### 1.1.rc2
* enhancements
2012-01-02 14:16:40 -05:00
* Allow to set cookie domain for the remember token. (by @mantas)
* Added navigational formats to specify when it should return a 302 and when a 401.
2012-01-02 14:16:40 -05:00
* Added authenticate(scope) support in routes (by @wildchild)
* Added after_update_path_for to registrations controller (by @thedelchop)
* Allow the mailer object to be replaced through config.mailer = "MyOwnMailer"
* bug fix
* Fix a bug where session was timing out on sign out
* deprecations
* bcrypt is now the default encryptor
* devise.mailer.confirmations_instructions now should be devise.mailer.confirmations_instructions.subject
* devise.mailer.user.confirmations_instructions now should be devise.mailer.confirmations_instructions.user_subject
* Generators now use Rails 3 syntax (devise:install) instead of devise_install
### 1.1.rc1
* enhancements
2010-06-23 06:27:00 -04:00
* Rails 3 compatibility
* All controllers and views are namespaced, for example: Devise::SessionsController and "devise/sessions"
* Devise.orm is deprecated. This reduces the required API to hook your ORM with devise
* Use metal for failure app
* HTML e-mails now have proper formatting
* Allow to give :skip and :controllers in routes
* Move trackable logic to the model
* E-mails now use any template available in the filesystem. Easy to create multipart e-mails
* E-mails asks headers_for in the model to set the proper headers
* Allow to specify haml in devise_views
* Compatibility with Mongoid
2010-06-23 06:27:00 -04:00
* Make config.devise available on config/application.rb
* TokenAuthenticatable now works with HTTP Basic Auth
* 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
* No need to append ?unauthenticated=true in URLs anymore since Flash was moved to a middleware in Rails 3
* :activatable is included by default in your models
2010-04-15 02:34:49 -04:00
* bug fix
2010-06-23 06:27:00 -04:00
* Fix a bug with STI
2010-04-15 02:34:49 -04:00
* deprecations
2010-06-23 06:27:00 -04:00
* Rails 3 compatible only
* Removed support for MongoMapper
* Scoped views are no longer "sessions/users/new". Now use "users/sessions/new"
* Devise.orm is deprecated, just require "devise/orm/YOUR_ORM" instead
* Devise.default_url_options is deprecated, just modify ApplicationController.default_url_options
* All messages under devise.sessions, except :signed_in and :signed_out, should be moved to devise.failure
* :as and :scope in routes is deprecated. Use :path and :singular instead
### 1.0.8
2010-06-23 06:27:00 -04:00
* enhancements
* Support for latest MongoMapper
2012-01-02 14:16:40 -05:00
* Added anybody_signed_in? helper (by @SSDany)
2010-06-23 06:27:00 -04:00
* bug fix
2012-01-02 14:16:40 -05:00
* confirmation_required? is properly honored on active? calls. (by @paulrosania)
### 1.0.7
2010-05-03 07:57:57 -04:00
* bug fix
* Ensure password confirmation is always required
* deprecations
* authenticatable was deprecated and renamed to database_authenticatable
* confirmable is not included by default on generation
### 1.0.6
2010-04-03 07:27:17 -04:00
* bug fix
* Do not allow unlockable strategies based on time to access a controller.
* Do not send unlockable email several times.
* Allow controller to upstram custom! failures to Warden.
### 1.0.5
2010-03-28 17:15:45 -04:00
* bug fix
* Use prepend_before_filter in require_no_authentication.
* require_no_authentication on unlockable.
* Fix a bug when giving an association proxy to devise.
* Do not use lock! on lockable since it's part of ActiveRecord API.
### 1.0.4
2010-03-03 06:25:28 -05:00
* bug fix
* Fixed a bug when deleting an account with rememberable
* Fixed a bug with custom controllers
### 1.0.3
* enhancements
* HTML e-mails now have proper formatting
* Do not remove MongoMapper options in find
### 1.0.2
* enhancements
2012-01-02 14:16:40 -05:00
* Allows you set mailer content type (by @glennr)
* bug fix
* Uses the same content type as request on http authenticatable 401 responses
### 1.0.1
* enhancements
* HttpAuthenticatable is not added by default automatically.
* Avoid mass assignment error messages with current password.
* bug fix
* Fixed encryptors autoload
### 1.0.0
2010-02-08 20:17:20 -05:00
2010-02-08 14:38:47 -05:00
* deprecation
* :old_password in update_with_password is deprecated, use :current_password instead
* enhancements
* Added Registerable
* Added Http Basic Authentication support
* Allow scoped_views to be customized per controller/mailer class
2013-08-11 16:19:58 -04:00
* Allow authenticatable to used in change_table statements
### 0.9.2
2010-02-05 15:37:28 -05:00
* bug fix
* Ensure inactive user cannot sign in
* Ensure redirect to proper url after sign up
* enhancements
* Added gemspec to repo
2012-01-02 14:16:40 -05:00
* Added token authenticatable (by @grimen)
### 0.9.1
2010-01-25 14:19:47 -05:00
* bug fix
2012-01-02 14:16:40 -05:00
* Allow bigger salt size (by @jgeiger)
2010-01-25 14:19:47 -05:00
* Fix relative url root
### 0.9.0
2010-01-21 09:30:13 -05:00
2010-01-13 13:51:20 -05:00
* deprecation
* devise :all is deprecated
* :success and :failure flash messages are now :notice and :alert
2010-01-13 13:51:20 -05:00
2010-01-13 12:27:26 -05:00
* enhancements
2012-01-02 14:16:40 -05:00
* Added devise lockable (by @mhfs)
2010-01-14 09:53:17 -05:00
* Warden 0.9.0 compatibility
* Mongomapper 0.6.10 compatibility
2012-01-02 14:16:40 -05:00
* Added Devise.add_module as hooks for extensions (by @grimen)
* Ruby 1.9.1 compatibility (by @grimen)
2010-01-13 12:27:26 -05:00
* bug fix
* Accept path prefix not starting with slash
2010-01-19 11:19:40 -05:00
* url helpers should rely on find_scope!
### 0.8.2
2010-01-13 11:46:16 -05:00
* enhancements
2012-01-02 14:16:40 -05:00
* Allow Devise.mailer_sender to be a proc (by @grimen)
2010-01-13 11:46:16 -05:00
2010-01-13 11:45:02 -05:00
* bug fix
2012-01-02 14:16:40 -05:00
* Fix bug with passenger, update is required to anyone deploying on passenger (by @dvdpalm)
2010-01-13 11:45:02 -05:00
### 0.8.1
* enhancements
* Move salt to encryptors
* Devise::Lockable
2010-01-09 10:36:04 -05:00
* Moved view links into partial and I18n'ed them
* bug fix
* Bcrypt generator was not being loaded neither setting the proper salt
### 0.8.0
* enhancements
* Warden 0.8.0 compatibility
2010-01-07 16:37:47 -05:00
* Add an easy for map.connect "sign_in", :controller => "sessions", :action => "new" to work
2012-01-02 14:16:40 -05:00
* Added :bcrypt encryptor (by @capotej)
2010-01-07 16:50:01 -05:00
* bug fix
* sign_in_count is also increased when user signs in via password change, confirmation, etc..
2012-01-02 14:16:40 -05:00
* More DataMapper compatibility (by @lancecarlson)
2010-01-07 16:50:01 -05:00
* deprecation
* Removed DeviseMailer.sender
### 0.7.5
2010-01-02 04:12:04 -05:00
* enhancements
* Set a default value for mailer to avoid find_template issues
* Add models configuration to MongoMapper::EmbeddedDocument as well
### 0.7.4
2010-01-02 04:12:04 -05:00
* enhancements
* Extract Activatable from Confirmable
* Decouple Serializers from Devise modules
### 0.7.3
2009-12-15 19:29:19 -05:00
2009-12-15 19:28:43 -05:00
* bug fix
* Give scope to the proper model validation
2009-12-14 19:20:59 -05:00
* enhancements
2009-12-14 19:32:40 -05:00
* Mail views are scoped as well
2009-12-14 20:03:56 -05:00
* Added update_with_password for authenticatable
2009-12-15 12:48:51 -05:00
* Allow render_with_scope to accept :controller option
2009-12-14 19:20:59 -05:00
### 0.7.2
2009-12-14 19:05:46 -05:00
* deprecation
* Renamed reset_confirmation! to resend_confirmation!
* Copying locale is part of the installation process
* bug fix
* Fixed render_with_scope to work with all controllers
* Allow sign in with two different users in Devise::TestHelpers
### 0.7.1
2009-12-08 17:39:38 -05:00
* enhancements
2012-01-02 14:16:40 -05:00
* Small enhancements for other plugins compatibility (by @grimen)
2009-12-08 17:39:38 -05:00
### 0.7.0
* deprecations
* :authenticatable is not included by default anymore
* enhancements
* Improve loading process
* Extract SessionSerializer from Authenticatable
### 0.6.3
* bug fix
* Added trackable to migrations
2009-12-02 14:51:34 -05:00
* Allow inflections to work
### 0.6.2
2009-11-24 20:20:35 -05:00
2009-11-24 12:29:46 -05:00
* enhancements
2009-11-24 20:20:35 -05:00
* More DataMapper compatibility
2009-11-24 12:29:46 -05:00
* Devise::Trackable - track sign in count, timestamps and ips
### 0.6.1
2009-11-23 21:09:34 -05:00
2009-11-23 20:56:57 -05:00
* enhancements
* Devise::Timeoutable - timeout sessions without activity
2009-11-23 21:09:34 -05:00
* DataMapper now accepts conditions
2009-11-23 20:56:57 -05:00
### 0.6.0
* deprecations
* :authenticatable is still included by default, but yields a deprecation warning
* enhancements
* Added DataMapper support
* Remove store_location from authenticatable strategy and add it to failure app
* Allow a strategy to be placed after authenticatable
2013-08-11 16:19:58 -04:00
* Do not rely attribute? methods, since they are not added on Datamapper
### 0.5.6
2009-11-21 17:08:14 -05:00
* enhancements
2013-08-11 16:19:58 -04:00
* Do not send nil to build (DataMapper compatibility)
* Allow to have scoped views
### 0.5.5
* enhancements
* Allow overwriting find for authentication method
2013-08-11 16:19:58 -04:00
* Remove Ruby 1.8.7 dependency
### 0.5.4
2009-11-19 10:14:02 -05:00
2009-11-19 10:09:05 -05:00
* deprecations
* Deprecate :singular in devise_for and use :scope instead
* enhancements
2013-08-11 16:19:58 -04:00
* Create after_sign_in_path_for and after_sign_out_path_for hooks to be
overwriten in ApplicationController
* Create sign_in_and_redirect and sign_out_and_redirect helpers
2009-11-19 10:09:05 -05:00
* Warden::Manager.default_scope is automatically configured to the first given scope
### 0.5.3
2009-11-18 08:22:35 -05:00
* bug fix
* MongoMapper now converts DateTime to Time
2009-11-18 08:22:35 -05:00
* Ensure all controllers are unloadable
* enhancements
2013-08-11 16:19:58 -04:00
* Moved friendly_token to Devise
* Added Devise.all, so you can freeze your app strategies
* Added Devise.apply_schema, so you can turn it to false in Datamapper or MongoMapper
in cases you don't want it be handlded automatically
### 0.5.2
2009-11-16 12:08:53 -05:00
* enhancements
2013-08-11 16:19:58 -04:00
* Improved sign_in and sign_out helpers to accepts resources
* Added stored_location_for as a helper
* Added test helpers
### 0.5.1
2009-11-15 00:31:13 -05:00
* enhancements
2009-11-16 11:58:14 -05:00
* Added serializers based on Warden ones
* Allow authentication keys to be set
2009-11-15 00:31:13 -05:00
### 0.5.0
2009-11-13 19:33:00 -05:00
* bug fix
* Fixed a bug where remember me module was not working properly
* enhancements
2012-01-02 14:16:40 -05:00
* Moved encryption strategy into the Encryptors module to allow several algorithms (by @mhfs)
* Implemented encryptors for Clearance, Authlogic and Restful-Authentication (by @mhfs)
* Added support for MongoMapper (by @shingara)
### 0.4.3
* bug fix
2013-08-11 16:19:58 -04:00
* Authentication just fails if user cannot be serialized from session, without raising errors;
* Default configuration values should not overwrite user values;
### 0.4.2
2009-11-06 06:40:38 -05:00
* deprecations
* Renamed mail_sender to mailer_sender
* enhancements
* skip_before_filter added in Devise controllers
* Use home_or_root_path on require_no_authentication as well
* Added devise_controller?, useful to select or reject filters in ApplicationController
* Allow :path_prefix to be given to devise_for
* Allow default_url_options to be configured through devise (:path_prefix => "/:locale" is now supported)
### 0.4.1
* bug fix
2013-08-11 16:19:58 -04:00
* Ensure options can be set even if models were not loaded
### 0.4.0
* deprecations
* Notifier is deprecated, use DeviseMailer instead. Remember to rename
app/views/notifier to app/views/devise_mailer and I18n key from
devise.notifier to devise.mailer
* :authenticable calls are deprecated, use :authenticatable instead
* enhancements
2013-08-11 16:19:58 -04:00
* Allow devise to be more agnostic and do not require ActiveRecord to be loaded
* Allow Warden::Manager to be configured through Devise
* Created a generator which creates an initializer
### 0.3.0
* bug fix
2013-08-11 16:19:58 -04:00
* Allow yml messages to be configured by not using engine locales
2009-10-30 05:23:47 -04:00
* deprecations
* Renamed confirm_in to confirm_within
2013-12-02 04:02:17 -05:00
* Do not send confirmation messages when user changes their e-mail
2013-08-11 16:19:58 -04:00
* Renamed authenticable to authenticatable and added deprecation warnings
2009-10-30 05:23:47 -04:00
### 0.2.3
2009-10-29 11:10:13 -04:00
* enhancements
* Ensure fail! works inside strategies
2013-08-11 16:19:58 -04:00
* Make unauthenticated message (when you haven't signed in) different from invalid message
* bug fix
* Do not redirect on invalid authenticate
* Allow model configuration to be set to nil
### 0.2.2
2009-10-28 06:33:20 -04:00
* bug fix
2013-08-11 16:19:58 -04:00
* Fix a bug when using customized resources
2009-10-28 06:33:20 -04:00
### 0.2.1
* refactor
* Clean devise_views generator to use devise existing views
* enhancements
2013-08-11 16:19:58 -04:00
* Create instance variables (like @user) for each devise controller
* Use Devise::Controller::Helpers only internally
* bug fix
2013-08-11 16:19:58 -04:00
* Fix a bug with Mongrel and Ruby 1.8.6
### 0.2.0
* enhancements
2013-08-11 16:19:58 -04:00
* Allow option :null => true in authenticable migration
* Remove attr_accessible calls from devise modules
* Customizable time frame for rememberable with :remember_for config
* Customizable time frame for confirmable with :confirm_in config
* Generators for creating a resource and copy views
2009-10-22 15:30:00 -04:00
* optimize
* Do not load hooks or strategies if they are not used
* bug fixes
2013-08-11 16:19:58 -04:00
* Fixed requiring devise strategies
2009-10-22 18:25:29 -04:00
### 0.1.1
* bug fixes
2013-08-11 16:19:58 -04:00
* Fixed requiring devise mapping
### 0.1.0
2009-10-22 15:30:00 -04:00
* Devise::Authenticable
* Devise::Confirmable
* Devise::Recoverable
* Devise::Validatable
* Devise::Migratable
* Devise::Rememberable
* SessionsController
* PasswordsController
* ConfirmationsController
* Create an example app
* devise :all, :except => :rememberable
* Use sign_in and sign_out in SessionsController
* Mailer subjects namespaced by model
* Allow stretches and pepper per model
* Store session[:return_to] in session
* Sign user in automatically after confirming or changing it's password