Documentation ¶
Index ¶
- func CreateTOTP(accountemail string) (*otp.Key, error)
- func CreateUser(c *gin.Context)
- func DeleteUser(c *gin.Context)
- func EmailExists(c *gin.Context, email string) bool
- func GetImage(c *gin.Context)
- func GetImageBytes(key *otp.Key) ([]byte, error)
- func GetImageStruct(key *otp.Key) (image.Image, error)
- func GetSessionByCookie(c *gin.Context)
- func GetSessionById(c *gin.Context)
- func GetSessionsOfUser(c *gin.Context)
- func GetUser(c *gin.Context)
- func LoginHandler(c *gin.Context)
- func LogoutHandler(c *gin.Context)
- func SessionExists(c *gin.Context) bool
- func UpdateUserAffiliation(c *gin.Context)
- func UpdateUserEmail(c *gin.Context)
- func UpdateUserLastseen(c *gin.Context)
- func UpdateUserPassword(c *gin.Context)
- func UpdateUserRole(c *gin.Context)
- func UserExists(c *gin.Context, id string) bool
- func UsernameExists(c *gin.Context, username string) bool
- func VerifyTOTP(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSessionById ¶
Return Session with user of provided session id or token
func UpdateUserAffiliation ¶
Update the affiliation of a user
func UpdateUserLastseen ¶
Update the last seen time of a user
func UsernameExists ¶
Check if the Username exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.