Versions in this module Expand all Collapse all v0 v0.0.3 Feb 28, 2024 Changes in this version + type Response struct + Message string + type UserPW struct + Name string + Pass string + type Users struct + Lookup map[string]string + func ReadPasswordsFile(path string, secret []byte, sessionTimeout int) (*Users, error) + func (u *Users) Authenticate(w http.ResponseWriter, r *http.Request) + func (u *Users) CurrentUser(r *http.Request) (string, bool) + func (u *Users) Logout(w http.ResponseWriter, r *http.Request) + func (u Users) Validate(user, password string) bool