Documentation ¶
Index ¶
- Constants
- Variables
- func GetAuthorization(c *gin.Context, abort bool, requires ...string) (*models.User, error)
- func HasPermissionOnProject(uid uint, pid uint, perms int) error
- func HasPermissions(user *models.User, requires ...string) bool
- func ResendOneTimePasscode(passcode models.OneTimePasscode, user models.User) (models.OneTimePasscode, error)
- func SendMail(recipient string, subject string, content string) error
- func SendOneTimePasscode(user models.User, email string, method int) (models.OneTimePasscode, error)
Constants ¶
View Source
const ( ProjectPermissionOwnedProject = iota ProjectPermissionDevelopProject )
Variables ¶
View Source
var JWTSigningMethod = jwt.SigningMethodHS512
Functions ¶
func GetAuthorization ¶
func ResendOneTimePasscode ¶
func ResendOneTimePasscode(passcode models.OneTimePasscode, user models.User) (models.OneTimePasscode, error)
func SendOneTimePasscode ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.