-
Home
-
Two Factor Authentication
-
1.10.2
-
Code
-
Classes
- Simba_TFA
Total Complexity |
187 |
Dependencies |
3 |
Dependents |
1 |
Total lines |
843 |
Lines of code |
464 |
Logical lines of code |
365 |
Comment lines |
186 |
Methods |
37 |
Properties |
2 |
Methods 37
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
authUserFromLogin() |
B |
44 |
22 |
34 |
check_code_for_user() |
A |
42 |
15 |
46 |
preAuth() |
A |
48 |
12 |
30 |
get_user_roles() |
A |
53 |
12 |
19 |
potentially_port_private_keys() |
A |
48 |
10 |
32 |
isActivatedForUser() |
A |
57 |
9 |
15 |
decrypt() |
A |
57 |
9 |
14 |
user_trust_token_valid() |
S |
59 |
8 |
12 |
getPanicCodesString() |
S |
55 |
7 |
17 |
user_property_active() |
S |
58 |
7 |
15 |
trust_device() |
S |
54 |
6 |
18 |
generateOTP() |
S |
58 |
5 |
15 |
random_bytes() |
S |
63 |
5 |
10 |
__construct() |
S |
57 |
4 |
14 |
generateOTPsForLoginCheck() |
S |
58 |
4 |
14 |
set_cookie() |
S |
59 |
4 |
12 |
setUserHMACTypes() |
S |
63 |
4 |
9 |
isCallerActive() |
S |
69 |
4 |
6 |
getUserAlgorithm() |
S |
65 |
4 |
8 |
hex2bin() |
S |
63 |
4 |
10 |
encrypt() |
S |
64 |
4 |
8 |
get_iv_size() |
S |
65 |
4 |
8 |
randString() |
S |
59 |
3 |
14 |
changeEnableTFA() |
S |
68 |
3 |
6 |
encryptString() |
S |
63 |
2 |
10 |
addPrivateKey() |
S |
64 |
2 |
9 |
getUserCounter() |
S |
66 |
2 |
8 |
user_get_trusted_devices() |
S |
72 |
2 |
5 |
changeUserAlgorithmTo() |
S |
63 |
2 |
10 |
getPrivateKeyPlain() |
S |
73 |
1 |
5 |
user_set_trusted_devices() |
S |
79 |
1 |
3 |
user_can_trust() |
S |
78 |
1 |
3 |
isRequiredForUser() |
S |
78 |
1 |
3 |
decryptString() |
S |
63 |
1 |
9 |
hashAndBin() |
S |
71 |
1 |
5 |
hash() |
S |
75 |
1 |
4 |
isActivatedByUser() |
S |
74 |
1 |
4 |