Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Login ¶
Login handles login request, receiving username/email and password from request body and verify it
func SendResetToken ¶
SendResetToken sends reset password token to user's email
Types ¶
type AuthLoginRequest ¶
type AuthLoginRequest struct { // in:body Email string `json:"email"` Username string `json:"username"` Password string `json:"password"` }
swagger:parameters LoginCredencials
type AuthLoginResponse ¶
type AuthLoginResponse struct { AccessToken string `json:"access_token"` RefreshToken string `json:"refresh_token"` }
swagger:response AuthLoginResponse
type AuthResetPasswordRequest ¶
type AuthResetPasswordRequest struct {
Token string `json:"token"`
}
swagger:parameters ResetPasswordRequest
type AuthResetTokenRequest ¶
type AuthResetTokenRequest struct {
Email string `json:"email"`
}
swagger:parameters ResetTokenRequest
Click to show internal directories.
Click to hide internal directories.