package
Version:
v0.0.0-...-4de3c4e
Opens a new window with list of versions in this module.
Published: Mar 13, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package user contains the basic admin user creation and authentication code,
specific to Instio systems.
Auth is HTTP middleware to ensure the request has proper token credentials
IsUser checks for consistency in email/pass combination
IsValid checks if the user request is authenticated
type User struct {
ID int `json:"id"`
Email string `json:"email"`
Hash string `json:"hash"`
Salt string `json:"salt"`
}
User defines a admin user in the system
Source Files
¶
Click to show internal directories.
Click to hide internal directories.