login

package
v0.0.0-...-5e84be2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var UserKeyName = "LoginUserKey"

user信息存放在Ctx中的key名称

Functions

func CheckLoginAndUserInfo

func CheckLoginAndUserInfo(c *fiber.Ctx) error

检查登录,并且获取用户信息

func GetUserInfo

func GetUserInfo(c *fiber.Ctx) *casdoorsdk.User

从fiber上下文中获取用户信息

Types

type LoginType

type LoginType string
const (
	// casdoor
	LOGIN_TYPE_CASDOOR LoginType = "casdoor"
	// AuthServer, 废弃不用authserver进行登录了
	LOGIN_TYPE_AUTHSERVER LoginType = "authserver"
)

登录类型

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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