File tree 4 files changed +8
-8
lines changed
app/controllers/devise_token_auth
4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 31
31
PATH
32
32
remote: .
33
33
specs:
34
- devise_token_auth (0.1.31.beta8 )
34
+ devise_token_auth (0.1.31.beta9 )
35
35
devise (~> 3.3 )
36
36
rails (~> 4.2 )
37
37
Original file line number Diff line number Diff line change @@ -27,14 +27,14 @@ def create
27
27
email = resource_params [ :email ]
28
28
end
29
29
30
- q = "uid=' #{ email } ' AND provider='email'"
30
+ q = "uid = ? AND provider='email'"
31
31
32
32
# fix for mysql default case insensitivity
33
33
if ActiveRecord ::Base . connection . adapter_name . downcase . starts_with? 'mysql'
34
- q = "BINARY uid=' #{ email } ' AND provider='email'"
34
+ q = "BINARY uid = ? AND provider='email'"
35
35
end
36
36
37
- @resource = resource_class . where ( q ) . first
37
+ @resource = resource_class . where ( q , email ) . first
38
38
39
39
errors = nil
40
40
Original file line number Diff line number Diff line change @@ -11,13 +11,13 @@ def create
11
11
email = resource_params [ :email ]
12
12
end
13
13
14
- q = "uid=' #{ email } ' AND provider='email'"
14
+ q = "uid = ? AND provider='email'"
15
15
16
16
if ActiveRecord ::Base . connection . adapter_name . downcase . starts_with? 'mysql'
17
- q = "BINARY uid=' #{ email } ' AND provider='email'"
17
+ q = "BINARY uid = ? AND provider='email'"
18
18
end
19
19
20
- @resource = resource_class . where ( q ) . first
20
+ @resource = resource_class . where ( q , email ) . first
21
21
22
22
if @resource and valid_params? and @resource . valid_password? ( resource_params [ :password ] ) and @resource . confirmed?
23
23
# create client id
Original file line number Diff line number Diff line change 1
1
module DeviseTokenAuth
2
- VERSION = "0.1.31.beta8 "
2
+ VERSION = "0.1.31.beta9 "
3
3
end
You can’t perform that action at this time.
0 commit comments