function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Li LeeLi Lee 

Unable Login Scratch Org event after changed password

Hi all,

I try use Salesforce DX create a Scratch Org and use "sfdx force:org:open" command to open it.

Then I reset password for this user. And success reset it. But I can't use test.salesforce.com to login this Scratch Org, it always show error message: Please check your username and password.

May I ask is there any solution to fixed this issue? 

I found same issue in force.com github but it not helped.
https://github.com/forcedotcom/cli/issues/583 

Best Answer chosen by Li Lee
ravi soniravi soni

Hi Li,
After Change Your Password, you have to Authorised an  dev hub Again and Open default org.

I Hope this time it will work.
Thank you

All Answers

ravi soniravi soni
hi Li,
after reset password,if you are trying to create a new scratch org then you have to Authorised an  dev hub with new password and create new scretch org OR simply  press Ctrl + Shift + p  and  '>sfdx : open default org'.

try above Steps and let me know if it  works.
and Marking it as best.
Thank you
Li LeeLi Lee

Hi Veer,

Thanks for your answer, but this is not what I want.

I don't want to create a new scratch org, I just want to use username and password to login in the scratch org I just create.

ravi soniravi soni

Hi Li,
After Change Your Password, you have to Authorised an  dev hub Again and Open default org.

I Hope this time it will work.
Thank you

This was selected as the best answer
Reno Redaja 8Reno Redaja 8
Hi Li, 
I figured it out!

When you go to the command palette:
  • Select SFDX: Authorize an org
  • Sandbox
  • Enter the alias name you want
  • Then it will take you to Sandbox login
  • From there input your username and password from the scratch org you have created
Hope this helps! I was able to log into my old scratch org without having to create a new one.