guest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2019 License: BSD-3-Clause Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateGuestCode

func GenerateGuestCode() string

GenerateGuestCode will create a 6 character verification code for guest registrations. Possibly confusing letters have been removed. In particular, the letters I, S, and O.

func GetInputLabel

func GetInputLabel(e *common.Environment) string

GetInputLabel returns the text that is displayed above the textbox asking for a guest's credential

func GetInputText added in v1.1.0

func GetInputText(e *common.Environment) string

func GetVerificationText added in v1.1.0

func GetVerificationText(e *common.Environment) string

func NormalizeCredential added in v1.1.0

func NormalizeCredential(e *common.Environment, c string) string

func RegisterDevice

func RegisterDevice(e *common.Environment, name, credential string, r *http.Request, users stores.UserStore, devices stores.DeviceStore, leases stores.LeaseStore) error

RegisterDevice will register the device for a guest. It is a simplified form of the full registration function found in controllers.api.Device.RegistrationHandler().

func SendGuestCode

func SendGuestCode(e *common.Environment, c, code string) error

SendGuestCode will send the verification code using the congifured checker.

Types

This section is empty.

Jump to

Keyboard shortcuts

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