mirror of
https://github.com/kevinveenbirkenbach/infinito.git
synced 2025-01-09 22:17:26 +01:00
Deleted unnecessary salt functions
This commit is contained in:
parent
0ead23e063
commit
e84d43b3f1
@ -23,14 +23,10 @@ class User extends AbstractSource implements UserInterface
|
|||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
$this->isActive = true;
|
$this->isActive = true;
|
||||||
// may not be needed, see section on salt below
|
|
||||||
// $this->salt = md5(uniqid('', true));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSalt()
|
public function getSalt()
|
||||||
{
|
{
|
||||||
// you *may* need a real salt depending on your encoder
|
|
||||||
// see section on salt below
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -50,8 +46,6 @@ class User extends AbstractSource implements UserInterface
|
|||||||
$this->id,
|
$this->id,
|
||||||
$this->username,
|
$this->username,
|
||||||
$this->password,
|
$this->password,
|
||||||
// see section on salt below
|
|
||||||
// $this->salt,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -62,8 +56,6 @@ class User extends AbstractSource implements UserInterface
|
|||||||
$this->id,
|
$this->id,
|
||||||
$this->username,
|
$this->username,
|
||||||
$this->password,
|
$this->password,
|
||||||
// see section on salt below
|
|
||||||
// $this->salt
|
|
||||||
) = unserialize($serialized, array('allowed_classes' => false));
|
) = unserialize($serialized, array('allowed_classes' => false));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user