provider

package
v1.7.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUser added in v1.0.0

func GetUser(c *gin.Context)

GetUser fetches a user if authenticated and exists

func IsAuthenticated added in v1.0.0

func IsAuthenticated() gin.HandlerFunc

Simple authentication middleware

func UserLogin

func UserLogin(c *gin.Context)

UserLogin is the login route.

Types

type Login

type Login struct {
	User     string `form:"username" json:"username" binding:"required"`
	Password string `form:"password" json:"password" binding:"required"`
}

Login object to be submitted via API POST.

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL