LDAPChangePasswordHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A changePasswordForm() 0 3 1
1
<?php
2
3
namespace SilverStripe\LDAP\Authenticators;
4
5
use SilverStripe\LDAP\Forms\LDAPChangePasswordForm;
6
use SilverStripe\Security\MemberAuthenticator\ChangePasswordHandler;
7
8
class LDAPChangePasswordHandler extends ChangePasswordHandler
9
{
10
    private static $allowed_actions = [
0 ignored issues
show
introduced by
The private property $allowed_actions is not used, and could be removed.
Loading history...
11
        'changepassword',
12
        'changePasswordForm',
13
    ];
14
15
    /**
16
     * Factory method for the lost password form
17
     *
18
     * @return LDAPChangePasswordForm
19
     */
20
    public function changePasswordForm()
21
    {
22
        return LDAPChangePasswordForm::create($this, 'ChangePasswordForm');
23
    }
24
}
25