-
Notifications
You must be signed in to change notification settings - Fork 9.4k
MC-33148: A link to resend a confirmation email is not clickable #27662
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
cbcf369
MC-33148: A link to resend a confirmation email is not clickable
VladimirZaets 1efab36
MC-33148: Fix unit test
VladimirZaets 1e66741
Merge branch '2.4-develop' into MC-33203
VladimirZaets 233a81a
MC-33148: Fix static tests
VladimirZaets dd26c37
Merge remote-tracking branch 'vz/MC-33203' into MC-33203
VladimirZaets f57c14b
MC-33148: Fix static tests
VladimirZaets f58b8a0
Fix static
VladimirZaets a2d0302
Fix static
VladimirZaets 251c1bb
Merge branch '2.4-develop' into MC-33203
VladimirZaets 5fd9cc2
Fixes according to review
VladimirZaets 91cd697
Merge remote-tracking branch 'vz/MC-33203' into MC-33203
VladimirZaets a413b74
Fix static
VladimirZaets ab6d6c5
Merge branch '2.4-develop' into MC-33203
VladimirZaets File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
17 changes: 17 additions & 0 deletions
17
app/code/Magento/Customer/view/frontend/templates/messages/confirmAccountErrorMessage.phtml
This file contains hidden or 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,17 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
/** @var \Magento\Framework\View\Element\Template $block */ | ||
/** @var \Magento\Framework\Escaper $escaper */ | ||
|
||
?> | ||
<?= $escaper->escapeHtml( | ||
__( | ||
'This account is not confirmed. <a href="%1">Click here</a> to resend confirmation email.', | ||
$block->getData('url') | ||
), | ||
['a'] | ||
); |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -28,6 +28,11 @@ class LoginPostTest extends AbstractController | |
/** @var EncoderInterface */ | ||
private $urlEncoder; | ||
|
||
/** | ||
* @var Url | ||
*/ | ||
private $customerUrl; | ||
|
||
/** | ||
* @inheritdoc | ||
*/ | ||
|
@@ -37,6 +42,7 @@ protected function setUp() | |
|
||
$this->session = $this->_objectManager->get(Session::class); | ||
$this->urlEncoder = $this->_objectManager->get(EncoderInterface::class); | ||
$this->customerUrl = $this->_objectManager->get(Url::class); | ||
} | ||
|
||
/** | ||
|
@@ -107,13 +113,16 @@ public function missingParametersDataProvider(): array | |
*/ | ||
public function testLoginWithUnconfirmedPassword(): void | ||
{ | ||
$this->markTestSkipped('Blocked by MC-31370.'); | ||
$email = '[email protected]'; | ||
$this->prepareRequest($email, 'Qwert12345'); | ||
$this->dispatch('customer/account/loginPost'); | ||
$this->assertEquals($email, $this->session->getUsername()); | ||
$message = __( | ||
'This account is not confirmed. <a href="%1">Click here</a> to resend confirmation email.', | ||
$this->customerUrl->getEmailConfirmationUrl($this->session->getUsername()) | ||
); | ||
$this->assertSessionMessages( | ||
$this->equalTo([(string)__('This account is not confirmed. Click here to resend confirmation email.')]), | ||
$this->equalTo([(string)$message]), | ||
MessageInterface::TYPE_ERROR | ||
); | ||
} | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.