FaultyToken::eraseCredentials()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 4
rs 10
c 1
b 0
f 1
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
namespace Riper\Security\ActiveDirectoryBundle\Security\Token;
3
4
use Symfony\Component\Security\Core\Authentication\Token\UsernamePasswordToken;
5
6
class FaultyToken extends UsernamePasswordToken
7
{
8
9
10
    /**
11
     * This method cut of the behaviour in order to keep the password in the token
12
     * This is a bad practice, but is the only simple way to keep the password and reuse it after
13
     * For active directory authentication
14
     */
15
    public function eraseCredentials()
16
    {
17
18
    }
19
}
20