Skip to content
This repository has been archived by the owner on Nov 16, 2021. It is now read-only.

change password #100

Open
stuartabrown opened this issue May 2, 2019 · 2 comments
Open

change password #100

stuartabrown opened this issue May 2, 2019 · 2 comments

Comments

@stuartabrown
Copy link

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?

@balsama
Copy link
Contributor

balsama commented May 15, 2019

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.

@serundeputy
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants