Fix dashboard CSRFField crash (closes #146) #147
Reference in New Issue
Block a user
Delete Branch "fix/dashboard-csrf-field"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The dashboard template uses
.CSRFFieldinside a{{range .AppStats}}block. Inside the range,.refers to*handlers.AppStats, not the root template data map. Changed to$.CSRFFieldto reference the root context.make checkpasses.docker build .succeeds.Test Results
1. Failing test (test-only commit, before fix)
2. Passing test (after fix)
3.
make check— all passing4.
docker build .— successfix: add CSRFField to dashboard template data (closes #146)to Fix dashboard CSRFField crash (closes #146)Test FAILING before fix:
Test PASSING after fix:
Linting, formatting, and build all pass:
make checkexits 0,docker build .succeeds.