mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 17:10:53 +00:00
Merge branch '1.14' into 2.0
* 1.14: [UserBundle] Deprecate pin configuration parameter
This commit is contained in:
commit
924b6d9bae
7 changed files with 7 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ final class MailerListener
|
|||
$this->sendEmail($event->getSubject(), UserBundleEmails::RESET_PASSWORD_TOKEN);
|
||||
}
|
||||
|
||||
/** @deprecated since Sylius 1.14 and will be removed in Sylius 2.0. */
|
||||
public function sendResetPasswordPinEmail(GenericEvent $event): void
|
||||
{
|
||||
$this->sendEmail($event->getSubject(), UserBundleEmails::RESET_PASSWORD_PIN);
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ sylius_mailer:
|
|||
reset_password_token:
|
||||
subject: sylius.emails.user.password_reset.subject
|
||||
template: "@SyliusShop/email/password_reset.html.twig"
|
||||
# This email is deprecated since Sylius 1.14 and will be removed in 2.0.
|
||||
reset_password_pin:
|
||||
subject: sylius.emails.user.password_reset.subject
|
||||
template: "@SyliusShop/email/password_reset.html.twig"
|
||||
|
|
|
|||
|
|
@ -72,6 +72,7 @@ class UserController extends ResourceController
|
|||
return $this->prepareResetPasswordRequest($request, $generator, UserEvents::REQUEST_RESET_PASSWORD_TOKEN);
|
||||
}
|
||||
|
||||
/** @deprecated since Sylius 1.14 and will be removed in Sylius 2.0. */
|
||||
public function requestPasswordResetPinAction(Request $request): Response
|
||||
{
|
||||
/** @var GeneratorInterface $generator */
|
||||
|
|
|
|||
|
|
@ -100,6 +100,7 @@ final class Configuration implements ConfigurationInterface
|
|||
->end()
|
||||
->end()
|
||||
->arrayNode('pin')
|
||||
->setDeprecated('sylius/user-bundle', '1.14', 'The "%path%.%node%" is deprecated and will be removed in 2.0.')
|
||||
->addDefaultsIfNotSet()
|
||||
->children()
|
||||
->integerNode('length')
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@ class MailerListener
|
|||
$this->sendEmail($event->getSubject(), Emails::RESET_PASSWORD_TOKEN);
|
||||
}
|
||||
|
||||
/** @deprecated since Sylius 1.14 and will be removed in Sylius 2.0. */
|
||||
public function sendResetPasswordPinEmail(GenericEvent $event): void
|
||||
{
|
||||
$this->sendEmail($event->getSubject(), Emails::RESET_PASSWORD_PIN);
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ final class Emails
|
|||
{
|
||||
public const RESET_PASSWORD_TOKEN = 'reset_password_token';
|
||||
|
||||
/** @deprecated since Sylius 1.14 and will be removed in Sylius 2.0. */
|
||||
public const RESET_PASSWORD_PIN = 'reset_password_pin';
|
||||
|
||||
public const EMAIL_VERIFICATION_TOKEN = 'verification_token';
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@ interface UserEvents
|
|||
{
|
||||
public const REQUEST_RESET_PASSWORD_TOKEN = 'sylius.user.password_reset.request.token';
|
||||
|
||||
/** @deprecated since Sylius 1.14 and will be removed in Sylius 2.0. */
|
||||
public const REQUEST_RESET_PASSWORD_PIN = 'sylius.user.password_reset.request.pin';
|
||||
|
||||
public const REQUEST_VERIFICATION_TOKEN = 'sylius.user.email_verification.token';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue