<?xml version="1.0" encoding="UTF-8" ?>

<!--
~ This file is part of the Sylius package.
~
~ (c) Sylius Sp. z o.o.
~
~ For the full copyright and license information, please view the LICENSE
~ file that was distributed with this source code.
-->

<constraint-mapping xmlns="http://symfony.com/schema/dic/constraint-mapping"
                    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                    xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping https://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd">
    <class name="Sylius\Bundle\AdminBundle\Form\Model\PasswordReset">
        <property name="password">
            <constraint name="NotBlank">
                <option name="message">sylius.admin.reset_password.password.not_blank</option>
                <option name="groups">sylius</option>
            </constraint>
            <constraint name="Length">
                <option name="min">4</option>
                <option name="minMessage">sylius.admin.reset_password.password.min</option>
                <option name="max">254</option>
                <option name="maxMessage">sylius.admin.reset_password.password.max</option>
                <option name="groups">sylius</option>
            </constraint>
        </property>
    </class>
</constraint-mapping>
