Documentation
¶
Index ¶
- type AccountsHandler
- func (handler *AccountsHandler) AccountDisableTOTP(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) AccountEnableTOTP(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) DeleteAccount(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) Recovery(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) Reset(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) SendConfirmationEmail(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) UpdateEmail(w http.ResponseWriter, r *http.Request)
- func (handler *AccountsHandler) UpdatePassword(w http.ResponseWriter, r *http.Request)
- type AuthHandler
- func (handler *AuthHandler) Login(w http.ResponseWriter, r *http.Request)
- func (handler *AuthHandler) LoginWithBackupCode(w http.ResponseWriter, r *http.Request)
- func (handler *AuthHandler) Logout(w http.ResponseWriter, r *http.Request)
- func (handler *AuthHandler) Register(w http.ResponseWriter, r *http.Request)
- func (handler *AuthHandler) ResendVerification(w http.ResponseWriter, r *http.Request)
- func (handler *AuthHandler) Verification(w http.ResponseWriter, r *http.Request)
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 ¶
type AuthHandler struct { AS *services.AccountsService ES *services.EmailService TS *services.TotpService BS *services.BlacklistService }
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)
Click to show internal directories.
Click to hide internal directories.