When I obtain the URL to reset the admin password, instead of placing me on the page where I can set the new password immediately, I am placed on a regular page which requires me to navigate to the account page and change my password from there.

This doesn't work because the page requests the current password before allow ing me to set the new password or change any of the account details.

Is "drush uli" not compatible with Backdrop's design?

Is there another way to change the admin password?

 

Accepted answer

I've just gotten word from Backdrop CMS drush maintainer that:

drush uli = one-time login link

drush upwd = changes the password for a user

I just successfully tested the following:

drush upwd admin --password=cattle

This changed the password for user=admin to password=cattle

Comments

klonos's picture

Thanks for posting this ,

I have just checked this and can confirm what you are experiencing. I think I have seen it happen in some D7 or D8 sites too, but cannot recall now.

I don't think that you are doing anything wrong on your end, so can you please take the time to raise a GitHub issue in https://github.com/backdrop-contrib/drush/issues for it? I you do not have a GitHub account, then please let us know, and I'm sure that one of us will create it.

Cheers!

I was also able to recreate this issue.

This is the message you get after a successful login with drush uli for Drupal 7:

You have just used your one-time login link. It is no longer necessary to use this link to log in. Please change your password.

This is the message you get after a successful login with drush uli for Backdrop CMS:

You have used your one-time log-in link and are now logged-in.

This suggests to me that the Backdrop version of drush ULI might ONLY be intended for a one time login links, not the ability to change the admin password. I plan to open an issue in the issue queue for Backdrop CSM drush project:

https://github.com/backdrop-contrib/drush/issues

I've just gotten word from Backdrop CMS drush maintainer that:

drush uli = one-time login link

drush upwd = changes the password for a user

I just successfully tested the following:

drush upwd admin --password=cattle

This changed the password for user=admin to password=cattle

Thanks guys for the quick response.

I was going to raise an issue for it and saw that @stpaultim had beaten me to it - https://github.com/backdrop-contrib/drush/issues/207.

I don't know whether the operation of drush uli has changed in or I may be using an older version of drush on my systems, but I think the question will come up again in the future if newcomers to Backdrop find out it doesn't work they way they are accustomed to

It sounds to me like drush uli might not have always included the password reset option for Drupal 7. Maybe it is a fairly recent addition?

Anyway, we've already updated the backdrush README file to include the drush upwd (password reset) option, which will hopefully help folks like yourself in the future.

https://github.com/backdrop-contrib/drush

Also, in the future anyone googling this question will find this discussion, which is why it's great to post your questions in the forum.

If you have other ideas on how we can help future users, please let us know.