accounts

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugin{}

Functions

func RegisterAfterCreateCallback

func RegisterAfterCreateCallback(callback func(id string, accountId string) error)

RegisterAfterCreateCallback registers a callback that will be called after a successful account creation. This can be used to set up post account creation tasks such as setting a new controller. The callback will be called with the session id as an argument, and the account id as an argument.

func RegisterAfterLoginCallback

func RegisterAfterLoginCallback(callback func(id string) error)

RegisterAfterLoginCallback registers a callback that will be called after a successful login. This can be used to set up post login tasks such as setting a new controller. The callback will be called with the session id as an argument.

func RegisterPasswordValidator

func RegisterPasswordValidator(validator func(password string) error)

RegisterPasswordValidator overwrites the default password validator. This is a function that simply returns an error whose message will be presented to the connected user when the error is present.

func RegisterUsernameValidator

func RegisterUsernameValidator(validator func(username string) error)

RegisterUsernameValidator overwrites the default username validator. This is a function that simply returns an error whose message will be presented to the connected user when the error is present.

Types

This section is empty.

Jump to

Keyboard shortcuts

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