Passed
Pull Request — master (#110)
by Robbie
02:33
created

MemberAuthenticator   A

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
namespace SilverStripe\MFA\Authenticator;
3
4
use SilverStripe\Security\MemberAuthenticator\MemberAuthenticator as BaseMemberAuthenticator;
5
6
class MemberAuthenticator extends BaseMemberAuthenticator
7
{
8
    public function getLoginHandler($link)
9
    {
10
        return LoginHandler::create($link, $this);
11
    }
12
13
    public function getChangePasswordHandler($link)
14
    {
15
        return ChangePasswordHandler::create($link, $this);
16
    }
17
}
18