Documentation ¶
Index ¶
- Variables
- func NewAuthService(us anor.UserService, e emailer.Emailer) anor.AuthService
- func RegisterRoutes(h *Handler, mux *http.ServeMux)
- type Handler
- func (h *Handler) Signin(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SigninView(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Signup(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignupConfirm(w http.ResponseWriter, r *http.Request)
- func (h *Handler) SignupView(w http.ResponseWriter, r *http.Request)
- type SigninForm
- type SignupConfirmForm
- type SignupForm
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEmailAlreadyTaken = errors.New("Email already taken") ErrInvalidCredentials = errors.New("Invalid credentials") ErrInvalidOTP = errors.New("Invalid OTP") ErrExpiredOTP = errors.New("Expired OTP") ErrEmailNotConfirmed = errors.New("Email not confirmed") ErrAccountBlocked = errors.New("Account blocked") ErrAccountInactive = errors.New("Account inactive") )
Functions ¶
func NewAuthService ¶
func NewAuthService(us anor.UserService, e emailer.Emailer) anor.AuthService
func RegisterRoutes ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) SigninView ¶
func (h *Handler) SigninView(w http.ResponseWriter, r *http.Request)
func (*Handler) SignupConfirm ¶
func (h *Handler) SignupConfirm(w http.ResponseWriter, r *http.Request)
func (*Handler) SignupView ¶
func (h *Handler) SignupView(w http.ResponseWriter, r *http.Request)
type SigninForm ¶
type SignupConfirmForm ¶
Click to show internal directories.
Click to hide internal directories.