devise_castle 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/devise_castle/passwords_controller.rb +26 -26
- data/lib/devise_castle/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 028a9e004c92c9f888450122f7cef35e855fbd8f
|
4
|
+
data.tar.gz: 571a9ab0a6938bafc4cfec3338d3c623c4d1f9fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7faf306246ed52015c2ec13a3b48b14935a7e2b0e108ad1e9b5434c997fea48177eb0fae0ef66f38c316cd2832af2752f3fe1cb97631ef11a2774f4f4a3aff3
|
7
|
+
data.tar.gz: 531cf8b5626c786abd91334d96a394cab767786bb4894e76008b4b1401f6b1ae5a549a3c45846126cf558ae5e90b62c917708be92017778286664170ea9c76e5
|
@@ -9,17 +9,17 @@ class DeviseCastle::PasswordsController < Devise::PasswordsController
|
|
9
9
|
end
|
10
10
|
|
11
11
|
super do |resource|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
12
|
+
unless resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
|
13
|
+
begin
|
14
|
+
castle.track(
|
15
|
+
name: '$password_reset.requested',
|
16
|
+
details: {
|
17
|
+
'$login' => username
|
18
|
+
})
|
19
|
+
rescue ::Castle::Error => e
|
20
|
+
if Devise.castle_error_handler.is_a?(Proc)
|
21
|
+
Devise.castle_error_handler.call(e)
|
22
|
+
end
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -27,21 +27,21 @@ class DeviseCastle::PasswordsController < Devise::PasswordsController
|
|
27
27
|
|
28
28
|
def update
|
29
29
|
super do |resource|
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
30
|
+
unless resource.respond_to?(:castle_do_not_track?) && resource.castle_do_not_track?
|
31
|
+
begin
|
32
|
+
if resource.errors.empty?
|
33
|
+
castle.track(
|
34
|
+
name: '$password_reset.succeeded',
|
35
|
+
user_id: resource._castle_id)
|
36
|
+
else
|
37
|
+
castle.track(
|
38
|
+
name: '$password_reset.failed',
|
39
|
+
user_id: resource._castle_id)
|
40
|
+
end
|
41
|
+
rescue ::Castle::Error => e
|
42
|
+
if Devise.castle_error_handler.is_a?(Proc)
|
43
|
+
Devise.castle_error_handler.call(e)
|
44
|
+
end
|
45
45
|
end
|
46
46
|
end
|
47
47
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: devise_castle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Johan Brissmyr
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-04-
|
12
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: devise
|
@@ -123,9 +123,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
123
|
version: '0'
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
|
-
rubygems_version: 2.
|
126
|
+
rubygems_version: 2.5.1
|
127
127
|
signing_key:
|
128
128
|
specification_version: 4
|
129
129
|
summary: Devise extension for Castle
|
130
130
|
test_files: []
|
131
|
-
has_rdoc:
|