devise 3.0.2 → 3.0.3

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

Potentially problematic release.


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

@@ -1,3 +1,8 @@
1
+ == 3.0.3
2
+
3
+ * bug fix
4
+ * Do not confirm account after reset password
5
+
1
6
  == 3.0.2
2
7
 
3
8
  * bug fix
@@ -12,7 +12,7 @@ GIT
12
12
  PATH
13
13
  remote: .
14
14
  specs:
15
- devise (3.0.2)
15
+ devise (3.0.3)
16
16
  bcrypt-ruby (~> 3.0)
17
17
  orm_adapter (~> 0.1)
18
18
  railties (>= 3.2.6, < 5)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- devise (3.0.2)
4
+ devise (3.0.3)
5
5
  bcrypt-ruby (~> 3.0)
6
6
  orm_adapter (~> 0.1)
7
7
  railties (>= 3.2.6, < 5)
@@ -241,11 +241,6 @@ module Devise
241
241
  regenerate_confirmation_token && save(:validate => false)
242
242
  end
243
243
 
244
- def after_password_reset
245
- super
246
- confirm! unless confirmed?
247
- end
248
-
249
244
  def postpone_email_change_until_confirmation_and_regenerate_confirmation_token
250
245
  @reconfirmation_required = true
251
246
  self.unconfirmed_email = self.email
@@ -1,3 +1,3 @@
1
1
  module Devise
2
- VERSION = "3.0.2".freeze
2
+ VERSION = "3.0.3".freeze
3
3
  end
@@ -7,7 +7,7 @@ class PasswordsControllerTest < ActionController::TestCase
7
7
  def setup
8
8
  request.env["devise.mapping"] = Devise.mappings[:user]
9
9
 
10
- @user = create_user
10
+ @user = create_user.tap(&:confirm!)
11
11
  @user.send_reset_password_instructions
12
12
  end
13
13
 
@@ -230,15 +230,6 @@ class PasswordTest < ActionDispatch::IntegrationTest
230
230
  end
231
231
  end
232
232
 
233
- test 'sign in user automatically and confirm after changing its password if it\'s not confirmed' do
234
- user = create_user(:confirm => false)
235
- request_forgot_password
236
- reset_password :reset_password_token => user.reload.reset_password_token
237
-
238
- assert warden.authenticated?(:user)
239
- assert user.reload.confirmed?
240
- end
241
-
242
233
  test 'reset password request with valid E-Mail in XML format should return valid response' do
243
234
  create_user
244
235
  post user_password_path(:format => 'xml'), :user => {:email => "user@test.com"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-08-09 00:00:00.000000000 Z
13
+ date: 2013-08-18 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: warden