Documentation
¶
Index ¶
- func Check(w http.ResponseWriter, r *http.Request)
- func Dashboard(w http.ResponseWriter, r *http.Request)
- func Error500(w http.ResponseWriter, _ *http.Request, err error)
- func Errors(w http.ResponseWriter, r *http.Request)
- func Index(w http.ResponseWriter, r *http.Request)
- func Login(w http.ResponseWriter, r *http.Request)
- func Logout(w http.ResponseWriter, r *http.Request)
- func Recovery(w http.ResponseWriter, r *http.Request)
- func Registration(w http.ResponseWriter, r *http.Request)
- func Settings(w http.ResponseWriter, r *http.Request)
- func Verification(w http.ResponseWriter, r *http.Request)
- func Welcome(w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶ added in v1.2.0
func Check(w http.ResponseWriter, r *http.Request)
Index displays a simple homepage
func Dashboard ¶
func Dashboard(w http.ResponseWriter, r *http.Request)
Dashboard page is accessible to logged in users only, the proptection for that is provide by KratoAuthMiddleware middleware
func Error500 ¶
func Error500(w http.ResponseWriter, _ *http.Request, err error)
ErrorHandler renders a response when an error occurs
func Errors ¶
func Errors(w http.ResponseWriter, r *http.Request)
Errors handler print the authentication service errors
func Login ¶
func Login(w http.ResponseWriter, r *http.Request)
Login handler displays the login screen
func Logout ¶
func Logout(w http.ResponseWriter, r *http.Request)
Logout handler clears the session & logs the user out
func Recovery ¶
func Recovery(w http.ResponseWriter, r *http.Request)
Recovery handler displays the recovery screen, which allows the user to enter and email address, the email contains a link to authenticate the user
func Registration ¶
func Registration(w http.ResponseWriter, r *http.Request)
Registration directs the user to a page where they can sign-up or register to use the site
func Settings ¶
func Settings(w http.ResponseWriter, r *http.Request)
Settings handler displays the Settings screen that allows the user to change their details
func Verification ¶ added in v1.1.0
func Verification(w http.ResponseWriter, r *http.Request)
Verification handler validate registration
Types ¶
This section is empty.