mirror of
https://github.com/maelstrom-cms/odin.git
synced 2026-04-25 08:16:03 +03:00
[PR #9] [CLOSED] 🚀 Feature - toggle registrations #42
Labels
No labels
bug
enhancement
help wanted
pull-request
question
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/odin-maelstrom-cms#42
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/maelstrom-cms/odin/pull/9
Author: @amaitu
Created: 10/6/2019
Status: ❌ Closed
Base:
master← Head:toggle-registrations📝 Commits (6)
a4084eeToggle registrations.1971f51Update example env.da7c599Hide login link if toggled off.18bcab6Add toggle to config file.9d5e4fdThrow 404 if registration disabled.8ceb746Simplify config key.📊 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.