acquia/lightning-project

change password

stuartabrown opened this issue · 2 comments

Sorry for the newbie question but i followed the composer quick-start method and have been signed in but I need the current password in order to be able to be able to change the password. How do I find this?

I'm actually not sure about this. When the browser first opens, I think there should be a message with a link to change the password initially.

That said, the environments that the quick-start command generates are meant to be ephemeral... just a place to take a quick look around. Your question hints that you might be using it for something more permanent. I'm not sure if you should look into more permanent dev environments or possible even hosting options if this is meant to be something that people actually log into.

Hello @stuartabrown

You can use drush to either get a one time login link or to reset your password:

gff ~/code/drupal-ops/lightning () 
└─ $ ∴ lando.dev drush help uli
Display a one time login link for user ID 1, or another user.

Examples:
  drush user:login                                                                                            Open default web browser and browse to homepage, logged in as uid=1.                                               
  drush user:login --name=ryan node/add/blog                                                                  Open default web browser (if configured or detected) for a one-time login link for username ryan that redirects to 
                                                                                                              node/add/blog.                                                                                                     
  drush user:login --uid=123                                                                                  Open default web browser and login as user with uid "123".                                                         
  drush user:login --mail=foo@bar.com                                                                         Open default web browser and login as user with mail "foo@bar.com".                                                
  drush user:login --browser=firefox --name=$(drush user:information --mail="drush@example.org" --fields=name Open firefox web browser, and login as the user with the e-mail address drush@example.org.                         
 --format=string)                                                                                                                                                                                                                

Arguments:
  [path] Optional path to redirect to after logging in. 

Options:
  --name[=NAME]                 A user name to log in as.                                                                                                                             
  --uid[=UID]                   A uid to log in as.                                                                                                                                   
  --mail[=MAIL]                 A user mail address to log in as.                                                                                                                     
  --browser[=BROWSER]           Optional value denotes which browser to use (defaults to operating system default). Use --no-browser to suppress opening a browser. [default: "true"] 
  --redirect-port=REDIRECT-PORT A custom port for redirecting to (e.g., when running within a Vagrant environment)                                                                    
  --no-browser                  Negate --browser option.                                                                                                                              

Aliases: uli, user-login
gff ~/code/drupal-ops/lightning () 
└─ $ ∴ lando.dev drush help upwd
Set the password for the user account with the specified name.

Examples:
  drush user:password someuser "correct horse battery staple" Set the password for the username someuser. @see xkcd.com/936 

Arguments:
  name     The name of the account to modify. 
  password The new password for the account.  

Aliases: upwd, user-password

but as @balsama recommends if you are needing a more permanent solution you can set up hosting or a proper dev envionment like localhost, lando, or ddev.