Documentation ¶
Index ¶
- func API2FA(w http.ResponseWriter, req *http.Request)
- func Check2FA(w http.ResponseWriter, req *http.Request)
- func Delete2FA(w http.ResponseWriter, req *http.Request)
- func GetUserR(req *http.Request) (string, string)
- func Me(w http.ResponseWriter, req *http.Request)
- func New2FA(w http.ResponseWriter, req *http.Request)
- func RefreshUserToken(w http.ResponseWriter, req *http.Request) (utils.User, error)
- func ResetPassword(w http.ResponseWriter, req *http.Request)
- func SendAdminPasswordEmail(nickname string, email string, link string) error
- func SendInviteEmail(nickname string, email string, link string) error
- func SendPasswordEmail(nickname string, email string, link string) error
- func SendUserToken(w http.ResponseWriter, req *http.Request, user utils.User, mfaDone bool)
- func UserCreate(w http.ResponseWriter, req *http.Request)
- func UserDelete(w http.ResponseWriter, req *http.Request)
- func UserEdit(w http.ResponseWriter, req *http.Request)
- func UserGet(w http.ResponseWriter, req *http.Request)
- func UserList(w http.ResponseWriter, req *http.Request)
- func UserLogin(w http.ResponseWriter, req *http.Request)
- func UserLogout(w http.ResponseWriter, req *http.Request)
- func UserRegister(w http.ResponseWriter, req *http.Request)
- func UserResendInviteLink(w http.ResponseWriter, req *http.Request)
- func UsersIdRoute(w http.ResponseWriter, req *http.Request)
- func UsersRoute(w http.ResponseWriter, req *http.Request)
- type CreateRequestJSON
- type EditRequestJSON
- type InviteRequestJSON
- type LoginRequestJSON
- type PasswordResetRequestJSON
- type RegisterRequestJSON
- type User2FACheckRequest
- type User2FAResetRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RefreshUserToken ¶
func ResetPassword ¶
func ResetPassword(w http.ResponseWriter, req *http.Request)
func SendAdminPasswordEmail ¶
func SendUserToken ¶
func UserCreate ¶
func UserCreate(w http.ResponseWriter, req *http.Request)
func UserDelete ¶
func UserDelete(w http.ResponseWriter, req *http.Request)
func UserLogout ¶
func UserLogout(w http.ResponseWriter, req *http.Request)
func UserRegister ¶
func UserRegister(w http.ResponseWriter, req *http.Request)
func UserResendInviteLink ¶
func UserResendInviteLink(w http.ResponseWriter, req *http.Request)
func UsersIdRoute ¶
func UsersIdRoute(w http.ResponseWriter, req *http.Request)
func UsersRoute ¶
func UsersRoute(w http.ResponseWriter, req *http.Request)
Types ¶
type CreateRequestJSON ¶
type EditRequestJSON ¶
type EditRequestJSON struct {
Email string `validate:"email"`
}
type InviteRequestJSON ¶
type LoginRequestJSON ¶
type RegisterRequestJSON ¶
type User2FACheckRequest ¶
type User2FACheckRequest struct {
Token string
}
type User2FAResetRequest ¶
type User2FAResetRequest struct {
Nickname string
}
Click to show internal directories.
Click to hide internal directories.