Documentation ¶
Index ¶
- func BuildModule(hub *hub.Hub) core.Module
- type Sol
- func (s *Sol) Authenticate(username, hash, totp string) (core.User, error)
- func (s *Sol) ConfirmPage(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)
- func (s *Sol) ConfirmRegistration(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (s *Sol) Disconnect(session string) error
- func (s *Sol) ExpireNow(r *http.Request, w http.ResponseWriter) error
- func (s *Sol) Fillers() map[string]core.Filler
- func (s *Sol) Forgot(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (s *Sol) GetReceipt(r *http.Request, name string) string
- func (s *Sol) GetUser(userid uint32) core.User
- func (s *Sol) GetUserFromConnection(r *http.Request) core.User
- func (s *Sol) GetUserFromUsername(username string) core.User
- func (s *Sol) IsConnected(user core.User) bool
- func (s *Sol) ListUsers(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)
- func (s *Sol) Login(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (s *Sol) Logout(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (*Sol) Name() string
- func (s *Sol) Posters() map[string]core.Poster
- func (s *Sol) ProfilePage(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)
- func (s *Sol) Recover(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (s *Sol) RecoverPage(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)
- func (s *Sol) Register(user core.User) error
- func (s *Sol) RequestRegisteration(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
- func (s *Sol) SetReceipt(r *http.Request, w http.ResponseWriter, receipt string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Sol ¶
type Sol struct {
// contains filtered or unexported fields
}
func (*Sol) Authenticate ¶
func (*Sol) ConfirmPage ¶
func (s *Sol) ConfirmPage(w http.ResponseWriter, r *http.Request, vars map[string]string) (interface{}, error)
ConfirmPage is the page a user is sent to after a successful registration. It will provide the user with a QR code to use for registration of the TOTP secret with their OTP authenticator app
func (*Sol) ConfirmRegistration ¶
func (s *Sol) ConfirmRegistration(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
func (*Sol) Disconnect ¶
func (*Sol) Forgot ¶
func (s *Sol) Forgot(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
Forgot begins the password reset process
func (*Sol) Login ¶
func (s *Sol) Login(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
func (*Sol) Logout ¶
func (s *Sol) Logout(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
func (*Sol) ProfilePage ¶
func (*Sol) Recover ¶
func (s *Sol) Recover(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
Recover finalizes the password reset process
func (*Sol) RecoverPage ¶
func (*Sol) RequestRegisteration ¶
func (s *Sol) RequestRegisteration(w http.ResponseWriter, r *http.Request, i interface{}) *core.PayloadResponse
func (*Sol) SetReceipt ¶
Click to show internal directories.
Click to hide internal directories.