Skip to content

Commit

Permalink
Merge branch 'main' into documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel authored Sep 23, 2024
2 parents fea026b + 4ddd7fb commit 44c418e
Show file tree
Hide file tree
Showing 9 changed files with 740 additions and 25 deletions.
19 changes: 19 additions & 0 deletions .ddev/commands/web/localdev
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

## Description: create local development directory
## Usage: localdev
## Example: ddev localdev <git-url>

if [ ! -d ".localdev/" ]
then
mkdir ".localdev/"
echo "Directory created."
fi

if ! grep -q "./.localdev/*" composer.json; then
php vendor/bin/composer config repositories.local '{"type": "path", "url": "./.localdev/*", "canonical": false}'
echo "Patched composer.json."
fi

cd ".localdev/" || exit
git clone "$@"
Original file line number Diff line number Diff line change
Expand Up @@ -932,7 +932,7 @@ protected function _validateResetPasswordLinkToken($customerId, $resetPasswordLi
}

$customerToken = $customer->getRpToken();
if (strcmp($customerToken, $resetPasswordLinkToken) != 0 || $customer->isResetPasswordLinkTokenExpired()) {
if (is_null($customerToken) || strcmp($customerToken, $resetPasswordLinkToken) !== 0 || $customer->isResetPasswordLinkTokenExpired()) {
throw Mage::exception('Mage_Core', $this->_getHelper('customer')->__('Your password reset link has expired.'));
}
}
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"require-dev": {
"ext-xmlreader": "*",
"composer/composer": "^2.7",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"friendsofphp/php-cs-fixer": "^3.4",
"macopedia/phpstan-magento1": "^1.0.5",
Expand Down
Loading

0 comments on commit 44c418e

Please sign in to comment.