{"hits": [{"proj": "hyva-themes/magento2-theme-module", "file": "src/ViewModel/Customer/ForgotPasswordButton.php", "ref": "main", "q": "password", "data": "<?php\n/**\n * Hyvä Themes - https://hyva.io\n * Copyright © Hyvä Themes. All rights reserved.\n * See COPYING.txt for license details.\n */\n\ndeclare(strict_types=1);\n\nnamespace Hyva\\Theme\\ViewModel\\Customer;\n\nuse Magento\\Framework\\ObjectManagerInterface;\nuse Magento\\Framework\\View\\Element\\Block\\ArgumentInterface;\n\n/**\n * Backwards compatible wrapper of \\Magento\\Customer\\ViewModel\\ForgotPasswordButton "}, {"proj": "hyva-themes/magento2-theme-module", "file": "CHANGELOG.md", "ref": "main", "q": "password", "data": "    Many thanks to Aad Mathijssen (Isaac) for the contribution!\n\n-   **Do not automatically apply password validation to all password type inputs**\n\n    This is a backward incompatible change.\n\n    Previously, if advanced form validation was enabled for a form, password validation was applied automatically to any password field.  \n    Now `data-validate='{\"password\": true}'` needs to be used.\n\n   "}, {"proj": "hyva-themes/magento2-theme-module", "file": "src/ViewModel/ReCaptcha.php", "ref": "main", "q": "password", "data": "    public const RECAPTCHA_FORM_ID_CUSTOMER_CREATE = 'customer_create';\n    public const RECAPTCHA_FORM_ID_CUSTOMER_EDIT = 'customer_edit';\n    public const RECAPTCHA_FORM_ID_CUSTOMER_FORGOT_PASSWORD = 'customer_forgot_password';\n    public const RECAPTCHA_FORM_ID_CUSTOMER_LOGIN = 'customer_login';\n    public const RECAPTCHA_FORM_ID_NEWSLETTER = 'newsletter';\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "src/view/frontend/templates/page/js/advanced-form-validation.phtml", "ref": "main", "q": "password", "data": "                return true;\n            },\n            password(value, options, field, context) {\n                const rule = /^(?=.*?[A-Z])(?=.*?[a-z])(?=.*?[0-9])(?=.*?[#?!@$%^&*-]).{8,}$/;\n                if (value.length > 0 && !rule.test(value)) {\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "tests/integration/CustomerViewModelsTest.php", "ref": "main", "q": "password", "data": "\n/**\n * @covers \\Hyva\\Theme\\ViewModel\\Customer\\ForgotPasswordButton\n * @covers \\Hyva\\Theme\\ViewModel\\Customer\\CreateAccountButton\n * @covers \\Hyva\\Theme\\ViewModel\\Customer\\LoginButton\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "LICENSE.txt", "ref": "main", "q": "secret", "data": "   3. Grant of Source Code License. The term \"Source Code\" means the preferred form of the Original Work for making modifications to it and all available documentation describing how to modify the Original Work. Licensor agrees to provide a machine-readable copy of the Source Code of the Original Work along with each copy of the Original Work that Licensor distributes. Licensor reserves the right "}, {"proj": "hyva-themes/magento2-theme-module", "file": "src/ViewModel/GoogleMapsApi.php", "ref": "main", "q": "apikey", "data": "    }\n\n    public function getApiKey(): ?string\n    {\n        return $this->getSubject()->getApiKey();\n    }\n\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "README.md", "ref": "main", "q": "token", "data": "# this command adds your key to your project's auth.json file\n# replace yourLicenseAuthenticationKey with your own key\ncomposer config --auth http-basic.hyva-themes.repo.packagist.com token yourLicenseAuthenticationKey\n# replace yourProjectName with your project name\ncomposer config repositories.private-packagist composer https://hyva-themes.repo.packagist.com/yourProjectName/\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "src/ViewModel/SvgIcons.php", "ref": "main", "q": "token", "data": "\n        // A simple str_replace will also match hex colors that start with the same string as the id, e.g. id=\"#b\" fill=\"#bcd\".\n        // We use preg_replace with a word boundary token at the end of the ID to make the match less likely.\n        return preg_replace(array_keys($uniqueIdList), array_values($uniqueIdList), $svgContent);\n    }\n"}, {"proj": "hyva-themes/magento2-theme-module", "file": "tests/integration/SvgIconsTest.php", "ref": "main", "q": "BEGIN", "data": "     */\n    #[Test]\n    public function throws_beginner_friendly_error()\n    {\n        $icons = $this->objectManager->create(\\Hyva\\Theme\\ViewModel\\SvgIcons::class);\n"}], "errors": []}