diff --git a/CHANGELOG.rdoc b/CHANGELOG.rdoc index 37735226..582fb494 100644 --- a/CHANGELOG.rdoc +++ b/CHANGELOG.rdoc @@ -1,3 +1,8 @@ +== 2.0.6 + +* bug fix + * Do not confirm account after reset password + == 2.0.5 * bug fix diff --git a/Gemfile.lock b/Gemfile.lock index e7d56075..8e537d39 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - devise (2.0.5) + devise (2.0.6) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.0.3) railties (~> 3.1) @@ -39,7 +39,7 @@ GEM multi_json (~> 1.0) addressable (2.2.6) arel (3.0.0) - bcrypt-ruby (3.0.1) + bcrypt-ruby (3.1.1) bson (1.5.1) bson_ext (1.3.1) builder (3.0.0) diff --git a/gemfiles/Gemfile.rails-3.1.x.lock b/gemfiles/Gemfile.rails-3.1.x.lock index 8e91911d..b0f4fb99 100644 --- a/gemfiles/Gemfile.rails-3.1.x.lock +++ b/gemfiles/Gemfile.rails-3.1.x.lock @@ -1,7 +1,7 @@ PATH remote: .. specs: - devise (2.0.2) + devise (2.0.6) bcrypt-ruby (~> 3.0) orm_adapter (~> 0.0.3) railties (~> 3.1) @@ -40,7 +40,7 @@ GEM multi_json (~> 1.0) addressable (2.2.7) arel (2.2.1) - bcrypt-ruby (3.0.1) + bcrypt-ruby (3.1.1) bson (1.5.2) bson_ext (1.3.1) builder (3.0.0) @@ -87,7 +87,7 @@ GEM omniauth-openid (1.0.1) omniauth (~> 1.0) rack-openid (~> 1.3.1) - orm_adapter (0.0.6) + orm_adapter (0.0.7) polyglot (0.3.3) rack (1.3.6) rack-cache (1.1) diff --git a/lib/devise/models/confirmable.rb b/lib/devise/models/confirmable.rb index c439cb85..a48ba7db 100644 --- a/lib/devise/models/confirmable.rb +++ b/lib/devise/models/confirmable.rb @@ -165,11 +165,6 @@ module Devise generate_confirmation_token && save(:validate => false) end - def after_password_reset - super - confirm! unless confirmed? - end - def postpone_email_change_until_confirmation @reconfirmation_required = true self.unconfirmed_email = self.email diff --git a/lib/devise/version.rb b/lib/devise/version.rb index 14244bad..a40ec5b3 100644 --- a/lib/devise/version.rb +++ b/lib/devise/version.rb @@ -1,3 +1,3 @@ module Devise - VERSION = "2.0.5".freeze + VERSION = "2.0.6".freeze end diff --git a/test/integration/recoverable_test.rb b/test/integration/recoverable_test.rb index cfe269b0..f0c121ea 100644 --- a/test/integration/recoverable_test.rb +++ b/test/integration/recoverable_test.rb @@ -195,15 +195,6 @@ class PasswordTest < ActionController::IntegrationTest assert !warden.authenticated?(:user) end - test 'sign in user automatically and confirm after changing its password if it\'s not confirmed' do - user = create_user(:confirm => false) - request_forgot_password - reset_password :reset_password_token => user.reload.reset_password_token - - assert warden.authenticated?(:user) - assert user.reload.confirmed? - end - test 'reset password request with valid E-Mail in XML format should return valid response' do create_user post user_password_path(:format => 'xml'), :user => {:email => "user@test.com"}