This is a hack to BookStack, using the theme system, so that login presents itself as a username.
Upon login attempt, this will match to a user of <username>@<configured-domain>
within the database.
This uses the logical theme system.
- Within the BookStack install folder, you should have a
themes
folder. - Create a
themes/custom/functions.php
file with the contents of thefunctions.php
file example below. - Configure the
EMAIL_DOMAIN
to be your desired email domain (Should be common across BookStack users). - Create a
themes/custom/auth/parts/login-form-standard.blade.php
file with the contents of thelogin-form-standard.blade.php
file below. - Add
APP_THEME=custom
to your .env file.
These customizations are not officially supported any may break upon, or conflict with, future updates. Quickly tested on BookStack v22.10