## Bug
`internal/config/config.go` reads `DEV_ADMIN_USERNAME` and `DEV_ADMIN_PASSWORD` from environment variables:
```go
DevAdminUsername: envString("DEV_ADMIN_USERNAME", "devAdminUsername"),
DevAdminPassword: envString("DEV_ADMIN_PASSWORD", "devAdminPassword"),
```
But these values are never used anywhere in the codebase. The admin user is always created with a randomly generated password in `database.go`:
```go
password, err := GenerateRandomPassword(16)
```
No code ever reads `Config.DevAdminUsername` or `Config.DevAdminPassword`.
## Fix
Either:
1. Remove the dead config fields, or
2. Actually use them in `database.go` to set a deterministic admin password in dev mode (which would improve DX)
Option 2 example:
```go
if d.params.Config.IsDev() && d.params.Config.DevAdminPassword != "" {
password = d.params.Config.DevAdminPassword
} else {
password, err = GenerateRandomPassword(16)
}
```
## Category
Should-fix. Dead code adds confusion.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Bug
internal/config/config.goreadsDEV_ADMIN_USERNAMEandDEV_ADMIN_PASSWORDfrom environment variables:But these values are never used anywhere in the codebase. The admin user is always created with a randomly generated password in
database.go:No code ever reads
Config.DevAdminUsernameorConfig.DevAdminPassword.Fix
Either:
database.goto set a deterministic admin password in dev mode (which would improve DX)Option 2 example:
Category
Should-fix. Dead code adds confusion.