Repository navigation
fix(cli): -ru ends the process and needs no gateway - #4
Merged
Merged
Conversation
- was: `casaos-user-service -ru -user <name>` reset the password in init(), then main() started a second service next to the running one - was: needed the gateway (management.url) → panicked on a box whose services are down, where the reset is most needed - now: `-ru` uses the account store only, exits 0 after the reset, 1 for a missing/unknown user Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
inkly
approved these changes
Oct 23, 2026
inkly
left a comment
Collaborator
There was a problem hiding this comment.
Thanks, this also stops -ru from re-registering the user routes at the gateway and overwriting the address file.
One follow-up, now that exit 0 is something callers can trust: UpdateUserPassword and UpdateUserTOTP swallow their errors and the DB has no busy timeout, so a write blocked by the running service still prints a new password and exits 0. Return the errors and exit 1? Nits: inline accounts, print errors to stderr.
We will squash-merge with a plain commit message (we keep tool attribution trailers out of main's history), so nothing to change there.
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.
-ru(reset a user's password) ends the process and needs no gateway.casaos-user-service -ru -user <name>resets ininit(), thenmain()starts a second service next to the running onemanagement.url) → panics on a box whose services are down, where a reset is most neededContext: ReCasaOS/CasaOS#11
🤖 Generated with Claude Code