Skip to content

Commit

Permalink
PGOV-440: Use basic auth creds from .env.
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrienne committed Feb 3, 2025
1 parent acd6cd3 commit 1176919
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/frontend/middleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export default function middleware(req: NextRequest) {
const authValue = basicAuth.split(' ')[1]
const [user, pwd] = atob(authValue).split(':')

if (user === 'admin' && pwd === 'civicactions') {
if (user === process.env.BASIC_AUTH_USER && pwd === process.env.BASIC_AUTH_PASSWORD) {
return NextResponse.next()
}
}
Expand Down

0 comments on commit 1176919

Please sign in to comment.