Documentation ¶
Index ¶
- Constants
- func HandleCreate(context router.Context) error
- func HandleCreateShow(context router.Context) error
- func HandleDestroy(context router.Context) error
- func HandleIndex(context router.Context) error
- func HandleLogin(context router.Context) error
- func HandleLoginShow(context router.Context) error
- func HandleLogout(context router.Context) error
- func HandlePasswordReset(context router.Context) error
- func HandlePasswordResetSend(context router.Context) error
- func HandlePasswordResetSentShow(context router.Context) error
- func HandlePasswordResetShow(context router.Context) error
- func HandleShow(context router.Context) error
- func HandleUpdate(context router.Context) error
- func HandleUpdateShow(context router.Context) error
Constants ¶
const ( // ResetLifetime is the maximum time reset tokens are valid for ResetLifetime = time.Hour )
Variables ¶
This section is empty.
Functions ¶
func HandleCreate ¶
HandleCreate handles the POST of the create form for users
func HandleCreateShow ¶
HandleCreateShow serves the create form via GET for users.
func HandleDestroy ¶
HandleDestroy responds to /users/n/destroy by deleting the user.
func HandleIndex ¶
HandleIndex displays a list of users.
func HandleLogin ¶
HandleLogin responds to POST /users/login by setting a cookie on the request with encrypted user data.
func HandleLoginShow ¶
HandleLoginShow shows the page at /users/login
func HandleLogout ¶
HandleLogout clears the current user's session /users/logout
func HandlePasswordReset ¶
HandlePasswordReset responds to POST /users/password?token=DEADFISH by logging the user in, removing the token and allowing them to set their password.
func HandlePasswordResetSend ¶
HandlePasswordResetSend responds to POST /users/password/reset by sending a password reset email.
func HandlePasswordResetSentShow ¶
HandlePasswordResetSentShow responds to GET /users/password/sent
func HandlePasswordResetShow ¶
HandlePasswordResetShow responds to GET /users/password/reset by showing the password reset page.
func HandleUpdate ¶
HandleUpdate handles the POST of the form to update a user
func HandleUpdateShow ¶
HandleUpdateShow renders the form to update a user.
Types ¶
This section is empty.