Integrate go-altcha to protect login, change password, lost password, and reset password forms against automated submissions. Serves the altcha widget JS from the embedded library, exposes a challenge endpoint, validates responses server-side with replay prevention, and updates the CSP to allow self-hosted scripts and WebAssembly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
21 lines
658 B
Modula-2
21 lines
658 B
Modula-2
module git.nemunai.re/chldapasswd
|
|
|
|
go 1.23.0
|
|
|
|
toolchain go1.26.0
|
|
|
|
require (
|
|
github.com/amoghe/go-crypt v0.0.0-20220222110647-20eada5f5964
|
|
github.com/go-ldap/ldap/v3 v3.4.12
|
|
gopkg.in/gomail.v2 v2.0.0-20160411212932-81ebce5c23df
|
|
)
|
|
|
|
require (
|
|
github.com/Azure/go-ntlmssp v0.0.0-20221128193559-754e69321358 // indirect
|
|
github.com/go-asn1-ber/asn1-ber v1.5.8-0.20250403174932-29230038a667 // indirect
|
|
github.com/google/uuid v1.6.0 // indirect
|
|
github.com/k42-software/go-altcha v0.1.1
|
|
github.com/pkg/errors v0.9.1 // indirect
|
|
golang.org/x/crypto v0.36.0 // indirect
|
|
gopkg.in/alexcesaro/quotedprintable.v3 v3.0.0-20150716171945-2caba252f4dc // indirect
|
|
)
|