Add an artisan command to change password#5596
Add an artisan command to change password#5596ChrisHills463 wants to merge 1 commit intoBookStackApp:developmentfrom
Conversation
b6721c8 to
8bae692
Compare
|
Thanks for offering this @ChrisHills463, and sorry for the late response. In that case could be better potentially served by a general "edit-user" command, with ability to also change basic user details (name,email,password,external_auth_id) so this could be used for creating unique defaults, in addition to helping other sysadmin level tasks (like scripting updates to the |
|
Thanks again for offering this @ChrisHills463, but I'm going to close it off in favour of changes made to the create admin command in #5749, which aim to address the fundamental scenario of being able to change the first-user-password, in a forward compatible manner as described in #4575. I'm not totally closed to the idea of introducing some form of user edit commands if needed beyond the changes in #5749, but I'd want to see some wider need/desire before introducing something new. |
With this change you can change a password from the cli with artisan. This is especially useful when automating the deployment of BookStack using Ansible or similar.
Usage:-
php artisan bookstack:change-password --email admin@admin.com --password Sup3rS3cur3Pa55w0rD