Documentation
¶
Index ¶
- func AcceptInvite(ctx context.Context, db boil.ContextExecutor, s sender.Sender, ...) error
- func AddFlash(c *gin.Context, flash interface{}, vars ...string)
- func Auth(c *gin.Context, db *sqlx.DB)
- func AuthAPI(c *gin.Context, db *sqlx.DB)
- func CheckCredentials(c *gin.Context, db boil.ContextExecutor, email string, password string) error
- func EnforceAuth(c *gin.Context)
- func EnforceReferer(c *gin.Context)
- func GetFlashes(c *gin.Context, vars ...string) []interface{}
- func HashValue(v string) string
- func Login(c *gin.Context, db boil.ContextExecutor, email string, password string) error
- func Logout(c *gin.Context)
- func RedirectToLogin(c *gin.Context)
- func Signup(ctx context.Context, db boil.ContextExecutor, sender sender.Sender, ...) (*core.User, error)
- type UserData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceptInvite ¶
func CheckCredentials ¶
func EnforceAuth ¶
func EnforceReferer ¶
func GetFlashes ¶
func RedirectToLogin ¶
Types ¶
type UserData ¶
func GetAPIUserData ¶
this is a lame way of doing the auth. Ideally the controller code should simply read the user from the context and that's it
func GetUserData ¶
Click to show internal directories.
Click to hide internal directories.