handlers

package
v0.0.0-...-b623679 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 1, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountsHandler

type AccountsHandler struct {
	AS *services.AccountsService
	ES *services.EmailService
	TS *services.TotpService
}

func (*AccountsHandler) AccountDisableTOTP

func (handler *AccountsHandler) AccountDisableTOTP(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) AccountEnableTOTP

func (handler *AccountsHandler) AccountEnableTOTP(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) DeleteAccount

func (handler *AccountsHandler) DeleteAccount(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Recovery

func (handler *AccountsHandler) Recovery(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) Reset

func (handler *AccountsHandler) Reset(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) SendConfirmationEmail

func (handler *AccountsHandler) SendConfirmationEmail(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) UpdateEmail

func (handler *AccountsHandler) UpdateEmail(w http.ResponseWriter, r *http.Request)

func (*AccountsHandler) UpdatePassword

func (handler *AccountsHandler) UpdatePassword(w http.ResponseWriter, r *http.Request)

type AuthHandler

func (*AuthHandler) Login

func (handler *AuthHandler) Login(w http.ResponseWriter, r *http.Request)

TOTP requires two pages or one page including the code before sending the request

func (*AuthHandler) LoginWithBackupCode

func (handler *AuthHandler) LoginWithBackupCode(w http.ResponseWriter, r *http.Request)

func (*AuthHandler) Logout

func (handler *AuthHandler) Logout(w http.ResponseWriter, r *http.Request)

func (*AuthHandler) Register

func (handler *AuthHandler) Register(w http.ResponseWriter, r *http.Request)

func (*AuthHandler) ResendVerification

func (handler *AuthHandler) ResendVerification(w http.ResponseWriter, r *http.Request)

Resending verification email if expired

func (*AuthHandler) Verification

func (handler *AuthHandler) Verification(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL