magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

It's time to change your password link not working. #37902

Closed parbat-evrig closed 11 months ago

parbat-evrig commented 1 year ago

Preconditions and environment

Steps to reproduce

  1. Login to admin panel
  2. If your password expired and Password Change setting set to Recommended you will a message "It's time to change your password." with link.
  3. When you click on this link then simply same page will be refreshed.
  4. No way to reset password.

Expected result

It should redirect to reset/change admin password page.

Actual result

It is not redirecting to reset/change admin password page.Simply refresh admin dashboard page.

Additional information

In same admin dashboard page if click on user icon then on Account Setting, it directs to reset/change admin password page. I think issue is in key that is added to link url.

Release note

No response

Triage and priority

m2-assistant[bot] commented 1 year ago

Hi @parbat-evrig. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:

m2-assistant[bot] commented 1 year ago

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

devchris79 commented 1 year ago

Are you using Porto theme?

parbat-evrig commented 1 year ago

Are you using Porto theme?

@devchris79 No, I am using luma theme.

devchris79 commented 1 year ago

May be related to #35667

parbat-evrig commented 1 year ago

May be related to #35667

No, that is different.

parbat-evrig commented 1 year ago

Dashboard message:- vendor/magento/module-user/Observer/Backend/AuthObserver.php Line no- 203 $myAccountUrl = $this->url->getUrl('adminhtml/system_account/'); Above url not Working.

Admin user nav:- vendor/magento/module-backend/view/adminhtml/templates/page/header.phtml Line No:- 23 <?= /* @noEscape */ $block->getUrl('adminhtml/system_account/index') ?> Above url is working.

After debugging it more found out that key value in url is diff-diff for both.

engcom-Bravo commented 1 year ago

Hi @parbat-evrig,

Thank you for reporting and collaboration.

Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the attached video.

Steps to reproduce

We have changed Password change setting as Recommended.

Screenshot 2023-08-22 at 1 31 08 PM

https://github.com/magento/magento2/assets/51680745/7009466f-0c2b-4b7e-8ee7-2eb06b940e87

After login to Admin dashboard when we click on It's time to change your password it is not redirecting to password change page it is just refreshing the admin page.

Hence Confirming the issue.

Thanks.

github-jira-sync-bot commented 1 year ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-9357 is successfully created for this GitHub issue.

m2-assistant[bot] commented 1 year ago

:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

BeggiNN commented 1 year ago

@magento I am working on this

BeggiNN commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @BeggiNN. Thank you for your request. I'm working on Magento instance for you.

BeggiNN commented 1 year ago

@magento give me 2.4-develop instance

magento-deployment-service[bot] commented 1 year ago

Hi @BeggiNN. Thank you for your request. I'm working on Magento instance for you.

magento-deployment-service[bot] commented 1 year ago

Hi @BeggiNN, here is your Magento Instance: https://5678ca713df99edbc1b8054932b229b5.instances-prod.magento-community.engineering Admin access: https://5678ca713df99edbc1b8054932b229b5.instances-prod.magento-community.engineering/admin_28f6 Login: 30521989 Password: 5e23b56b57a2

parbat-evrig commented 1 year ago

Hi @BeggiNN , any update here ?

BeggiNN commented 1 year ago

@parbat-evrig I'm in the process

BeggiNN commented 1 year ago

@magento I am working on this

Kristhian92 commented 7 months ago

Hello everyone, at the moment I am trying to find a solution but I haven't found it, could you help me, thank you

parbat-evrig commented 7 months ago

Hello Kristhian,

Did you apply this patch https://github.com/magento/magento2/pull/37978/commits/a40555914794446146c004e3ebf973f6802902d5 ?

On Fri, 12 Apr 2024 at 07:38, Kristhian Lizcano @.***> wrote:

Hello everyone, at the moment I am trying to find a solution but I haven't found it, could you help me, thank you

— Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/37902#issuecomment-2050838047, or unsubscribe https://github.com/notifications/unsubscribe-auth/A7J7SRHEWA75VNIXABOKAEDY446Y7AVCNFSM6AAAAAA3YBAZV2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANJQHAZTQMBUG4 . You are receiving this because you were mentioned.Message ID: @.***>

cristhianlizcanov commented 7 months ago

Hello, I am trying to customize the message its time change the password so that when I click on it, it redirects me to Account Settings to renew the password and it does not take me to the Dashboard again. I don't know what file to change in my vendor.