Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add gorilla/csrf integration #622

Merged
merged 2 commits into from
May 26, 2024
Merged

docs: add gorilla/csrf integration #622

merged 2 commits into from
May 26, 2024

Conversation

Nelwhix
Copy link
Contributor

@Nelwhix Nelwhix commented Mar 16, 2024

No description provided.

```go
r := mux.NewRouter()
r.HandleFunc("/login", func (w http.ResponseWriter, r *http.Request) {
login := Login(csrf.Token(r))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Login template doesn't have a CSRF param.

@a-h a-h merged commit 067cc68 into a-h:main May 26, 2024
4 checks passed
@a-h
Copy link
Owner

a-h commented May 26, 2024

Thanks, I just did a quick update and tested the code.

@Nelwhix
Copy link
Contributor Author

Nelwhix commented May 26, 2024

Thanks Adrian🥹

@a-h
Copy link
Owner

a-h commented May 27, 2024

By the way, I noticed you became the 100th contributor to templ!

Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants