docs: Contribution guidelines (#7443)

* docs: gender neutrality

* docs: gender neutrality

* docs: gender neutrality

* Update docs/docs/concepts/features/identity-brokering.md

Co-authored-by: Tim Möhlmann <[email protected]>

* Update docs/docs/guides/integrate/login-ui/mfa.mdx

Co-authored-by: Tim Möhlmann <[email protected]>

* Update docs/docs/guides/integrate/login-ui/passkey.mdx

Co-authored-by: Tim Möhlmann <[email protected]>

* Update internal/static/i18n/en.yaml

Co-authored-by: Tim Möhlmann <[email protected]>

* Update internal/static/i18n/en.yaml

Co-authored-by: Tim Möhlmann <[email protected]>

---------

Co-authored-by: Tim Möhlmann <[email protected]>
This commit is contained in:
Fabi
2024-02-26 13:11:09 +00:00
committed by GitHub
co-authored by Tim Möhlmann
parent 2731099db3
commit 0542b29517
24 changed files with 57 additions and 39 deletions
+2 -2
View File
@@ -78,11 +78,11 @@ router.Handle("/auth/", z.Authentication)
***Authentication checks***
To ensure the user is authenticated before they are able to use your application, the middleware provides two options:
- You can either require the user to be authenticated. If he's not yet, he will be automatically redirected to the Login UI:
- You can either require the user to be authenticated. If they haven't already, they will be automatically redirected to the Login UI:
```go
mw.RequireAuthentication()(handler)
```
- You can just check if he already is, but still continue serving the page:
- You can just check the user's authentication status, but still continue serving the page:
```go
mw.CheckAuthentication()(handler)
```