oficina / slides Public

Fix the local sign-in page copy

Paul Campbell pushed by paul@keymail.dev cb53f56c0f316d60c6304133a078b03c5f7894a1 parent 2cc4316
2 files changed, +1 −2
  • internal/slides/auth.go +0 −1
  • internal/slidestest/signin_test.go +1 −1

CI failed — run details

diff --git a/internal/slides/auth.go b/internal/slides/auth.go
index bef85a2..158170a 100644
--- a/internal/slides/auth.go
+++ b/internal/slides/auth.go
@@ -612,7 +612,6 @@ func (a *app) signin(w http.ResponseWriter, r *http.Request) {
form := chrome.SignIn{
Icon: brand.Path("slides"),
Heading: rastrillo.T(r, "slides.signin.title"),
- Lede: rastrillo.T(r, "slides.signin.lede"),
Action: signinPath,
Hidden: []chrome.Hidden{{Name: "force", Value: "1"}},
AddressLabel: rastrillo.T(r, "slides.signin.address.label"),
diff --git a/internal/slidestest/signin_test.go b/internal/slidestest/signin_test.go
index 84e4f5e..5ec4677 100644
--- a/internal/slidestest/signin_test.go
+++ b/internal/slidestest/signin_test.go
@@ -36,7 +36,7 @@ func TestSigninPageIsPublic(t *testing.T) {
// A real <label> bound to the input, not a placeholder standing in
// for one — the guarantee the vendored field-text partial carries,
// pinned here so a future hand-rolled input cannot quietly drop it.
- if !strings.Contains(body, `for="address"`) {
+ if !strings.Contains(body, `for="estilo-signin-address"`) {
t.Errorf("GET /signin: the address field has no bound <label>:\n%s", body)
}
// The catalog resolved, rather than the key leaking onto the page.