Documentation
¶
Index ¶
- Variables
- func Activate(users njudge.Users) echo.HandlerFunc
- func BeginOAuth() echo.HandlerFunc
- func GetForgotPassword() echo.HandlerFunc
- func GetForgotPasswordForm() echo.HandlerFunc
- func GetLogin(googleAuth bool) echo.HandlerFunc
- func GetRegister() echo.HandlerFunc
- func Logout() echo.HandlerFunc
- func OAuthCallback(us njudge.Users) echo.HandlerFunc
- func PostForgotPassword(url string, users njudge.Users, mailService email.Service) echo.HandlerFunc
- func PostForgotPasswordForm(users njudge.Users) echo.HandlerFunc
- func PostLogin(us njudge.Users) echo.HandlerFunc
- func PostRegister(url string, users njudge.Users, mailService email.Service) echo.HandlerFunc
- func RequireLoginMiddleware() func(echo.HandlerFunc) echo.HandlerFunc
- func SetUserMiddleware(us njudge.Users) func(echo.HandlerFunc) echo.HandlerFunc
- type Authenticator
- type GetForgotPasswordFormRequest
- type LoginErrorWithMessage
- type PostForgotPasswordFormRequest
- type PostLoginRequest
- type PostRegisterRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorLogin = errors.New("login error")
Functions ¶
func BeginOAuth ¶
func BeginOAuth() echo.HandlerFunc
func GetForgotPassword ¶ added in v0.5.0
func GetForgotPassword() echo.HandlerFunc
func GetForgotPasswordForm ¶ added in v0.5.0
func GetForgotPasswordForm() echo.HandlerFunc
func GetRegister ¶
func GetRegister() echo.HandlerFunc
func OAuthCallback ¶
func PostForgotPassword ¶ added in v0.5.0
func PostForgotPasswordForm ¶ added in v0.5.0
func PostRegister ¶ added in v0.5.0
func RequireLoginMiddleware ¶
func RequireLoginMiddleware() func(echo.HandlerFunc) echo.HandlerFunc
func SetUserMiddleware ¶
Types ¶
type Authenticator ¶
type GetForgotPasswordFormRequest ¶ added in v0.5.0
type LoginErrorWithMessage ¶
type LoginErrorWithMessage struct {
TranslatedMessage string
}
func (LoginErrorWithMessage) Error ¶
func (LoginErrorWithMessage) Error() string
func (LoginErrorWithMessage) Is ¶
func (LoginErrorWithMessage) Is(target error) bool
type PostForgotPasswordFormRequest ¶ added in v0.5.0
type PostLoginRequest ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.