mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #5460] [CLOSED] Self-Hosting User Management Enhancement #5223
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#5223
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/hoppscotch/hoppscotch/pull/5460
Author: @Sambhram1
Created: 10/7/2025
Status: ❌ Closed
Base:
main← Head:ftr-5📝 Commits (1)
9406183ftr-5📊 Changes
9 files changed (+1271 additions, -39 deletions)
View changed files
➕
.azure/user-management-implementation.md(+404 -0)➕
PR_DESCRIPTION.md(+293 -0)➕
SELFHOST_USER_MANAGEMENT_SOLUTION.md(+237 -0)📝
packages/hoppscotch-backend/src/auth/auth.service.ts(+60 -0)📝
packages/hoppscotch-backend/src/types/InfraConfig.ts(+7 -0)➕
packages/hoppscotch-backend/src/types/UserManagement.ts(+20 -0)➕
packages/hoppscotch-backend/src/user/user-management.resolver.ts(+81 -0)➕
packages/hoppscotch-backend/src/user/user-management.service.ts(+148 -0)📝
packages/hoppscotch-backend/src/user/user.service.ts(+21 -39)📄 Description
📋 Overview
This PR adds comprehensive user management controls for self-hosted Hoppscotch instances, addressing critical enterprise needs for registration control, admin-only account management, and improved user experience.
🎯 Problem Statement
Self-hosted Hoppscotch instances currently lack essential user management capabilities:
✨ Solution
🔐 1. Registration Control System
New Configuration Options:
Registration Modes:
🛡️ 2. Admin-Only Account Management
Enhanced Security:
Features:
🔄 3. Instance Auto-Selection
Improved UX:
Benefits:
📂 Files Changed
Backend Infrastructure
src/types/InfraConfig.ts- New configuration enumssrc/types/UserManagement.ts- User status and registration typessrc/auth/auth.service.ts- Registration validation logicsrc/user/user.service.ts- Admin-only deletion controlssrc/user/user-management.service.ts- Comprehensive user managementsrc/user/user-management.resolver.ts- GraphQL API endpointsDocumentation
.azure/user-management-implementation.md- Comprehensive implementation guideSELFHOST_USER_MANAGEMENT_SOLUTION.md- Solution architecture🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.