Removing domain restriction without being able to log in #3387

Closed
opened 2026-02-05 06:34:24 +03:00 by OVERLORD · 1 comment
Owner

Originally created by @moffitj on GitHub (Dec 5, 2022).

Attempted Debugging

  • I have read the debugging page

Searched GitHub Issues

  • I have searched GitHub for the issue.

Describe the Scenario

I enabled domain restriction. After saving I got logged out and can't log back in because I have not verified my address. The server is unable to send emails and I'm unable to configure it to do so.

Is there a way to remove the domain restriction without being able to log in?

Exact BookStack Version

22.09

Log Content

No response

PHP Version

No response

Hosting Environment

Debian 10

Originally created by @moffitj on GitHub (Dec 5, 2022). ### Attempted Debugging - [X] I have read the debugging page ### Searched GitHub Issues - [X] I have searched GitHub for the issue. ### Describe the Scenario I enabled domain restriction. After saving I got logged out and can't log back in because I have not verified my address. The server is unable to send emails and I'm unable to configure it to do so. Is there a way to remove the domain restriction without being able to log in? ### Exact BookStack Version 22.09 ### Log Content _No response_ ### PHP Version _No response_ ### Hosting Environment Debian 10
OVERLORD added the 🐕 Support label 2026-02-05 06:34:24 +03:00
Author
Owner

@ssddanbrown commented on GitHub (Dec 5, 2022):

Hi @moffitj,
No built-in way to disable this, but the follow commands, ran from your bookstack folder, should reset this setting to turn off domain restriction:

php artisan tinker --execute="setting()->put('registration-restrict', '')"
php artisan config:clear
@ssddanbrown commented on GitHub (Dec 5, 2022): Hi @moffitj, No built-in way to disable this, but the follow commands, ran from your bookstack folder, should reset this setting to turn off domain restriction: ```bash php artisan tinker --execute="setting()->put('registration-restrict', '')" php artisan config:clear ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/BookStack#3387