auth

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 11 Imported by: 0

README

auth

go get github.com/go-gorf/auth

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthApp = App{
	// contains filtered or unexported fields
}

Functions

func LoginRequiredMiddleware

func LoginRequiredMiddleware(ctx *gin.Context)

func Urls

func Urls(r *gin.Engine)

func UserLogin

func UserLogin(ctx *gin.Context)

func UserProfile

func UserProfile(ctx *gin.Context)

func UserSignUp

func UserSignUp(ctx *gin.Context)

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) Register

func (app *App) Register(r *gin.Engine)

func (*App) Setup

func (*App) Setup()

type User

type User struct {
	gorm.Model
	Email    string `json:"email" binding:"required"`
	Password string `json:"Password" binding:"required"`
}

func GetUser

func GetUser(ctx *gin.Context) (User, error)

Directories

Path Synopsis
legacy module

Jump to

Keyboard shortcuts

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