travis-ci
41 of 41 new or added lines in 1 file covered. (100.0%)
37044 of 51099 relevant lines covered (72.49%)
925.26 hits per line
1 |
module Authenticator |
4✔ |
2 |
class Database < Base |
4✔ |
3 |
def self.proper_name |
4✔ |
4 |
'EVM'
|
18✔ |
5 |
end
|
|
6 |
|
|
7 |
def uses_stored_password? |
4✔ |
8 |
true
|
8✔ |
9 |
end
|
|
10 |
|
|
11 |
private |
4✔ |
12 |
|
|
13 |
def _authenticate(username, password, _request) |
4✔ |
14 |
user = case_insensitive_find_by_userid(username) |
36✔ |
15 |
|
|
16 |
user && user.authenticate_bcrypt(password) |
36✔ |
17 |
end
|
|
18 |
|
|
19 |
def authorize? |
4✔ |
20 |
false
|
18✔ |
21 |
end
|
|
22 |
end
|
|
23 |
end
|