MemberAuthenticator   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getLoginHandler() 0 3 1
A getChangePasswordHandler() 0 3 1
1
<?php
2
3
namespace SilverStripe\MFA\Authenticator;
4
5
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator as BaseMemberAuthenticator;
6
7
class MemberAuthenticator extends BaseMemberAuthenticator
8
{
9
    public function getLoginHandler($link)
10
    {
11
        return LoginHandler::create($link, $this);
12
    }
13
14
    public function getChangePasswordHandler($link)
15
    {
16
        return ChangePasswordHandler::create($link, $this);
17
    }
18
}
19