]> BookStack Code Mirror - bookstack/commit
Added external-auth-id option to create-admin command
authorDan Brown <redacted>
Mon, 31 Jan 2022 20:43:41 +0000 (20:43 +0000)
committerDan Brown <redacted>
Mon, 31 Jan 2022 20:43:41 +0000 (20:43 +0000)
commitf83cc83877125ec20ab0e277dc4d2255a404af59
tree6f446deb38be372b15f40b8610de373c7d1be2af
parent17215431caec61334cd653e030ba3b42c7ef2ca1
Added external-auth-id option to create-admin command

- Added tests to cover.
- Refactored some existing testing.
- Requires password or external_auth_id to be provided. Defaults to
  password.
- Randomly sets password to 32 digit random chars if external_auth_id
  provided instead.

For #3222
app/Console/Commands/CreateAdmin.php
tests/Commands/AddAdminCommandTest.php [deleted file]
tests/Commands/CreateAdminCommandTest.php [new file with mode: 0644]