Skip to content

Commit

Permalink
Merge pull request #392 from loic425/fix/password-hashers
Browse files Browse the repository at this point in the history
Fix password hasher
  • Loading branch information
loic425 committed Jan 20, 2022
2 parents 8fdca6c + 1dde4ef commit 0ae6a15
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,14 @@
namespace Monofony\Contracts\Core\Model\User;

use Sylius\Component\User\Model\UserInterface as BaseUserInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;

interface AdminUserInterface extends BaseUserInterface
interface AdminUserInterface extends BaseUserInterface, PasswordAuthenticatedUserInterface
{
public const DEFAULT_ADMIN_ROLE = 'ROLE_ADMIN';

public function getPassword(): ?string;

public function getFirstName(): ?string;

public function setFirstName(?string $firstName): void;
Expand Down
4 changes: 3 additions & 1 deletion src/Monofony/Contracts/Core/Model/User/AppUserInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@

use Sylius\Component\Customer\Model\CustomerAwareInterface;
use Sylius\Component\User\Model\UserInterface;
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;

interface AppUserInterface extends UserInterface, CustomerAwareInterface
interface AppUserInterface extends UserInterface, CustomerAwareInterface, PasswordAuthenticatedUserInterface
{
public function getPassword(): ?string;
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ sylius_mailer:
template: emails/verification.html.twig

security:
encoders:
password_hashers:
argon2i: argon2id

sylius_user:
Expand Down

0 comments on commit 0ae6a15

Please sign in to comment.