Skip to content

Commit bc4a693

Browse files
committed
AC-10886: admin Password update.
1 parent 4efc1ed commit bc4a693

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

app/code/Magento/Backend/Controller/Adminhtml/System/Account/Save.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,12 @@
1111
use Magento\Framework\Controller\ResultFactory;
1212
use Magento\Framework\Exception\State\UserLockedException;
1313
use Magento\Security\Model\SecurityCookie;
14-
use Magento\Framework\App\Action\HttpPostActionInterface;
1514
use \Magento\User\Model\User;
1615

1716
/**
1817
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1918
*/
20-
class Save extends \Magento\Backend\Controller\Adminhtml\System\Account implements HttpPostActionInterface
19+
class Save extends \Magento\Backend\Controller\Adminhtml\System\Account
2120
{
2221
/**
2322
* @var SecurityCookie

app/code/Magento/Backend/Test/Unit/Controller/Adminhtml/System/Account/SaveTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
4-
* See COPYING.txt for license details.
3+
* Copyright 2014 Adobe
4+
* All Rights Reserved.
55
*/
66
declare(strict_types=1);
77

@@ -215,7 +215,8 @@ public function testSaveAction(): void
215215
Form::IDENTITY_VERIFICATION_PASSWORD_FIELD => 'current_password'
216216
];
217217

218-
$testedMessage = 'You saved the account.';
218+
$testedMessage = "The password, username, firstname, lastname and email of this account"
219+
." have been modified successfully.";
219220

220221
$this->authSessionMock->expects($this->any())->method('getUser')->willReturn($this->userMock);
221222

app/code/Magento/Security/Test/Mftf/ActionGroup/AdminResetPasswordActionGroup.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<fillField selector="{{AdminSystemAccountSection.passwordConfirmation}}" userInput="Admin@12345678" stepKey="confirmPassword1"/>
2828
<fillField selector="{{AdminSystemAccountSection.currentPassword}}" userInput="123123aaa" stepKey="fillCorrectPassword"/>
2929
<click selector="{{AdminMainActionsSection.save}}" stepKey="clickSaveUser2"/>
30-
<see selector="{{AdminMessagesSection.success}}" userInput="You saved the account." stepKey="seeSuccessMessage"/>
30+
<see selector="{{AdminMessagesSection.success}}" userInput="The password of this account has been modified successfully." stepKey="seeSuccessMessage"/>
3131

3232
</actionGroup>
3333
</actionGroups>

0 commit comments

Comments
 (0)