Skip to content

Fix reset-password CLI scope#307

Merged
stef-k merged 2 commits into
mainfrom
fix/reset-password-cli-scope-306
May 19, 2026
Merged

Fix reset-password CLI scope#307
stef-k merged 2 commits into
mainfrom
fix/reset-password-cli-scope-306

Conversation

@stef-k
Copy link
Copy Markdown
Owner

@stef-k stef-k commented May 19, 2026

Summary

  • Fixes Fix reset-password CLI DI scope and exit behavior #306.
  • Stops the reset-password CLI command after the password reset instead of continuing into web startup.
  • Replaces builder.Services.BuildServiceProvider() in the CLI path with a minimal command host and scoped UserManager<ApplicationUser> resolution.
  • Keeps the existing CLI success/failure feedback messages.

Validation

  • dotnet build: passed, 0 warnings / 0 errors; ASP0000 is gone.
  • dotnet run -- reset-password: printed usage and exited without starting the web app.
  • dotnet run -- reset-password user2 User2!: reset succeeded and printed the success message.
  • Manual login check with user2 / User2!: passed.
  • dotnet test: passed, 1547/1547.
  • dotnet run --project tools/Wayfarer.LocCheck -- --warn 400 --fail 600: passed with existing warnings only.
  • git diff --check: passed, normal CRLF working-copy warning only.
  • Tracked artifact scan: clean.

Notes

No normal web startup service registration was changed; the patch is scoped to the admin CLI reset-password path.

@stef-k stef-k merged commit 9afb6d8 into main May 19, 2026
1 check passed
@stef-k stef-k deleted the fix/reset-password-cli-scope-306 branch May 19, 2026 05:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix reset-password CLI DI scope and exit behavior

1 participant