feat: minimal locally stored user entity
This commit is contained in:
1 parent
53884e4e12
commit
c418ae6399
14 files changed
+217
-200
No files matched your search
@@ -1,16 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Controller\Traits;
|
||||
|
||||
use App\BusProNet\Security\User;
|
||||
use App\Security\Crypt;
|
||||
|
||||
trait CredentialsTrait
|
||||
{
|
||||
public function getPasswordPlain(User $bpnUser, string $pathToKeys): string
|
||||
{
|
||||
$crypt = new Crypt($pathToKeys);
|
||||
|
||||
return $crypt->decrypt($bpnUser->getPassword());
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user