-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add default M2 e-mail validation to whitelist. Add notice for whiteli…
…st functionality to README.md
- Loading branch information
Ilja
committed
Jan 21, 2020
1 parent
104e7f4
commit 0a7db37
Showing
3 changed files
with
59 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
/** | ||
* @category ScandiPWA | ||
* @package ScandiPWA\Router | ||
* @author Ilja Lapkovskis <[email protected] / [email protected]> | ||
* @copyright Copyright (c) 2019 Scandiweb, Ltd (http://scandiweb.com) | ||
* @license OSL-3.0 | ||
*/ | ||
|
||
namespace ScandiPWA\Router\Controller\Customer; | ||
|
||
|
||
use Magento\Customer\Controller\Account\Confirm; | ||
use \Magento\Framework\Controller\Result\Redirect; | ||
use Magento\Framework\UrlInterface; | ||
|
||
|
||
class RedirectPlugin | ||
{ | ||
/** | ||
* @var UrlInterface | ||
*/ | ||
protected $urlModel; | ||
|
||
/** | ||
* ValidateRedirect constructor. | ||
* @param UrlInterface $urlModel | ||
*/ | ||
public function __construct(UrlInterface $urlModel) | ||
{ | ||
$this->urlModel = $urlModel; | ||
} | ||
|
||
/** | ||
* @param Confirm $a | ||
* @param Redirect $result | ||
* @return Redirect | ||
*/ | ||
public function afterExecute(Confirm $subject, $result) | ||
{ | ||
return $result->setPath($this->urlModel->getBaseUrl()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters