casino_core-authenticator-activerecord 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
casino_core-authenticator-activerecord (
|
4
|
+
casino_core-authenticator-activerecord (1.1.1)
|
5
5
|
activerecord (~> 3.2.12)
|
6
6
|
bcrypt-ruby (~> 3.0.1)
|
7
7
|
unix-crypt (~> 1.0.2)
|
@@ -34,7 +34,7 @@ GEM
|
|
34
34
|
rspec-core (2.12.2)
|
35
35
|
rspec-expectations (2.12.1)
|
36
36
|
diff-lcs (~> 1.1.3)
|
37
|
-
rspec-mocks (2.12.
|
37
|
+
rspec-mocks (2.12.2)
|
38
38
|
simplecov (0.7.1)
|
39
39
|
multi_json (~> 1.0)
|
40
40
|
simplecov-html (~> 0.7.1)
|
data/README.md
CHANGED
@@ -26,7 +26,7 @@ class CASinoCore::Authenticator::ActiveRecord
|
|
26
26
|
password_from_database = user.send(@options[:password_column])
|
27
27
|
|
28
28
|
if valid_password?(password, password_from_database)
|
29
|
-
{ username: user.send(@options[:username_column])
|
29
|
+
{ username: user.send(@options[:username_column]), extra_attributes: extra_attributes(user) }
|
30
30
|
else
|
31
31
|
false
|
32
32
|
end
|
@@ -56,7 +56,7 @@ describe CASinoCore::Authenticator::ActiveRecord do
|
|
56
56
|
end
|
57
57
|
|
58
58
|
it 'returns the extra attributes' do
|
59
|
-
@authenticator.validate('test', 'testpassword')[:email].should eq('mail@example.org')
|
59
|
+
@authenticator.validate('test', 'testpassword')[:extra_attributes][:email].should eq('mail@example.org')
|
60
60
|
end
|
61
61
|
end
|
62
62
|
|