[PR #195] chore: extract default admin credentials into ApplicationHelper constants #186

Closed
opened 2026-02-26 17:37:40 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/Corsinvest/cv4pve-admin/pull/195

State: closed
Merged: Yes


Summary

  • Add ApplicationHelper.DefaultAdminUsername = "admin@local" and DefaultAdminPassword = "Password123!" constants
  • Replace all hardcoded strings in:
    • ServiceCollectionExtensions.cs — user seed on first run
    • UserCommands.csreset-password CLI default username
    • Login.razor.cs#if DEBUG pre-fill

Test plan

  • Verify first-run seed creates admin@local with default password
  • Verify user reset-password CLI defaults to admin@local
  • Verify DEBUG login pre-fill still works
**Original Pull Request:** https://github.com/Corsinvest/cv4pve-admin/pull/195 **State:** closed **Merged:** Yes --- ## Summary - Add `ApplicationHelper.DefaultAdminUsername = "admin@local"` and `DefaultAdminPassword = "Password123!"` constants - Replace all hardcoded strings in: - `ServiceCollectionExtensions.cs` — user seed on first run - `UserCommands.cs` — `reset-password` CLI default username - `Login.razor.cs` — `#if DEBUG` pre-fill ## Test plan - [ ] Verify first-run seed creates `admin@local` with default password - [ ] Verify `user reset-password` CLI defaults to `admin@local` - [ ] Verify DEBUG login pre-fill still works
kerem 2026-02-26 17:37:40 +03:00
kerem changed title from [PR #195] [MERGED] chore: extract default admin credentials into ApplicationHelper constants to [PR #195] chore: extract default admin credentials into ApplicationHelper constants 2026-03-07 19:57:23 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-admin#186
No description provided.