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
themesfolder. - Create a
themes/custom/functions.phpfile with the contents of thefunctions.phpfile example below. - Configure the
EMAIL_DOMAINto be your desired email domain (Should be common across BookStack users). - Create a
themes/custom/auth/parts/login-form-standard.blade.phpfile with the contents of thelogin-form-standard.blade.phpfile below. - Add
APP_THEME=customto your .env file.
These customizations are not officially supported any may break upon, or conflict with, future updates. Quickly tested on BookStack v22.10