Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CurrentUserHasPermission ¶
func CurrentUserHasPermission(r *http.Request, perm permissions.Permission) bool
Types ¶
type Handler ¶
func NewHandler ¶
func (*Handler) CreatePasswordFile ¶
func (*Handler) UpdatePassword ¶
Set a password for a user into our password database. We don't save the plaintext password, we concatenate the userid with the raw password, take the sha256sum of that, and store that in our database.
func (*Handler) UpdateUserPassword ¶
Read a password from the terminal and pass it to UpdatePassword.
type LoginStatus ¶
Click to show internal directories.
Click to hide internal directories.