login

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2020 License: MIT, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TokenSalt = rands.HexString(32)

Functions

func Notify

func Notify(action actions.ActionWrapper) bool

func Observe

func Observe(f func(action actions.ActionWrapper) bool)

Types

type IndexAction

type IndexAction actions.Action

func (*IndexAction) RunGet

func (this *IndexAction) RunGet()

登录

func (*IndexAction) RunPost

func (this *IndexAction) RunPost(params struct {
	Username string
	Password string
	Token    string
	Remember bool
	Must     *actions.Must
	Auth     *helpers.UserShouldAuth
})

提交登录

Jump to

Keyboard shortcuts

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