Documentation ¶
Index ¶
- func GenerateGuestCode() string
- func GetInputLabel(e *common.Environment) string
- func GetInputText(e *common.Environment) string
- func GetVerificationText(e *common.Environment) string
- func NormalizeCredential(e *common.Environment, c string) string
- func RegisterDevice(e *common.Environment, name, credential string, r *http.Request, ...) error
- func SendGuestCode(e *common.Environment, c, code string) error
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.
Click to show internal directories.
Click to hide internal directories.