[PR #9] [CLOSED] 🚀 Feature - toggle registrations #42

Closed
opened 2026-02-27 09:12:43 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/maelstrom-cms/odin/pull/9
Author: @amaitu
Created: 10/6/2019
Status: Closed

Base: masterHead: toggle-registrations


📝 Commits (6)

📊 Changes

6 files changed (+43 additions, -1 deletions)

View changed files

📝 .env.example (+1 -0)
📝 app/Http/Controllers/Auth/RegisterController.php (+1 -0)
📝 app/Http/Kernel.php (+2 -0)
app/Http/Middleware/CheckRegistrationsAllowed.php (+25 -0)
📝 config/auth.php (+10 -0)
📝 resources/views/auth/login.blade.php (+4 -1)

📄 Description

When hosting this project I find that I don't want anyone to be able to sign up once I've added all the users I need. So this PR adds a simple registration toggle which is editable via an env value, and is set to true by default.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/maelstrom-cms/odin/pull/9 **Author:** [@amaitu](https://github.com/amaitu) **Created:** 10/6/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `toggle-registrations` --- ### 📝 Commits (6) - [`a4084ee`](https://github.com/maelstrom-cms/odin/commit/a4084ee6966b2d40b2cf9a7cf32f35d5bb28e074) Toggle registrations. - [`1971f51`](https://github.com/maelstrom-cms/odin/commit/1971f51309f192501c18ee235af270b782b50632) Update example env. - [`da7c599`](https://github.com/maelstrom-cms/odin/commit/da7c59995ff8c3b7969a984605f0c6b79251bd70) Hide login link if toggled off. - [`18bcab6`](https://github.com/maelstrom-cms/odin/commit/18bcab6c96896705397ecb11f5407b186f5c1b8a) Add toggle to config file. - [`9d5e4fd`](https://github.com/maelstrom-cms/odin/commit/9d5e4fdaa00a084a81a1b4ffcc7c4c1f6e12ff6b) Throw 404 if registration disabled. - [`8ceb746`](https://github.com/maelstrom-cms/odin/commit/8ceb74669e30e6e35b72be02534743b5a2e48c9a) Simplify config key. ### 📊 Changes **6 files changed** (+43 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `.env.example` (+1 -0) 📝 `app/Http/Controllers/Auth/RegisterController.php` (+1 -0) 📝 `app/Http/Kernel.php` (+2 -0) ➕ `app/Http/Middleware/CheckRegistrationsAllowed.php` (+25 -0) 📝 `config/auth.php` (+10 -0) 📝 `resources/views/auth/login.blade.php` (+4 -1) </details> ### 📄 Description When hosting this project I find that I don't want anyone to be able to sign up once I've added all the users I need. So this PR adds a simple registration toggle which is editable via an env value, and is set to true by default. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 09:12:43 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/odin-maelstrom-cms#42
No description provided.