package
Version:
v0.0.0-...-781fd0c
Opens a new window with list of versions in this module.
Published: Oct 30, 2023
License: BSD-3-Clause
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 Ponzu 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.