Repository navigation
feat: Add reset password command - #121
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds an administrative hub reset-password subcommand to reset a local user’s password directly against the Hub database, returning a generated temporary password and forcing a password change on next login.
Changes:
- Added
reset-passwordCobra command with--email/--idtargeting and password reset logic. - Added unit tests for target normalization and password reset behavior (local + managed user rejection).
- Added
lipgloss(and related indirect deps) to render a styled CLI result card.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| backend/go.mod | Adds lipgloss and required indirect terminal styling dependencies. |
| backend/go.sum | Records checksums for newly added styling/terminal dependencies. |
| backend/cmd/hub/reset_password.go | Implements the reset-password command, DB connect/close, reset logic, and output rendering. |
| backend/cmd/hub/reset_password_test.go | Adds tests for normalization and reset behavior using a temporary SQLite DB. |
| backend/cmd/hub/main.go | Registers the new reset-password subcommand on the hub root command. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report❌ Patch coverage is 📢 Thoughts on this report? Let us know! |
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
alex289
enabled auto-merge (squash)
April 25, 2026 18:46
Co-authored-by: Copilot <[email protected]>
timokoessler
approved these changes
Apr 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Type of change
Description
Add reset-password command to hub: