lightning-project icon indicating copy to clipboard operation
lightning-project copied to clipboard

change password

Open stuartabrown opened this issue 5 years ago • 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?

stuartabrown avatar May 02 '19 14:05 stuartabrown

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.

balsama avatar May 15 '19 12:05 balsama

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 [email protected]                                                                         Open default web browser and login as user with mail "[email protected]".                                                
  drush user:login --browser=firefox --name=$(drush user:information --mail="[email protected]" --fields=name Open firefox web browser, and login as the user with the e-mail address [email protected].                         
 --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.

serundeputy avatar Jul 31 '19 18:07 serundeputy