auth_service

package
v0.0.0-...-b8d1666 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CurrentUser

func CurrentUser(c *gin.Context) *utils.Claims

Determine if the currently logged in user is himself

Types

type Auth

type Auth struct {
	Mail     string
	Password string
}

func (*Auth) Check

func (a *Auth) Check() (*models.User, error)

Jump to

Keyboard shortcuts

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