apis

package
v1.324.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func HookAtUserCreation

func HookAtUserCreation(app *pocketbase.PocketBase)

func HookAtUserLogin

func HookAtUserLogin(app *pocketbase.PocketBase)

func HookTurnstileVerification

func HookTurnstileVerification(app *pocketbase.PocketBase)

HookTurnstileVerification validates Cloudflare Turnstile tokens on user registration and login. It reads the token from the X-Turnstile-Token HTTP header and verifies it with Cloudflare.

func IsSuperUser

func IsSuperUser(app core.App, user *core.Record) bool

func RegisterMyRoutes

func RegisterMyRoutes(app core.App)

Types

type UnitTestSuite

type UnitTestSuite struct {
	suite.Suite
	testsuite.WorkflowTestSuite
	// contains filtered or unexported fields
}

func (*UnitTestSuite) SetupTest

func (s *UnitTestSuite) SetupTest()

Directories

Path Synopsis
SPDX-FileCopyrightText: 2025 Forkbomb BV
SPDX-FileCopyrightText: 2025 Forkbomb BV

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL