captcha

package
v1.1.3-0...-e5dd412 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CaptchaLogSender

func CaptchaLogSender(mobile, captcha string) (err error)

CaptchaLogSender print captcha in log

func EnableCaptchaAuth

func EnableCaptchaAuth(s *o2.Oauth2Server, captchaStore o2x.CaptchaStore, sender CaptchaSender)

enable captcha auth

func SendCaptcha

func SendCaptcha(w http.ResponseWriter, r *http.Request) (err error)

func SendCaptchaHandler

func SendCaptchaHandler(w http.ResponseWriter, r *http.Request)

func ValidationCaptchaTokenRequest

func ValidationCaptchaTokenRequest(r *http.Request) (gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest, err error)

validate captcha token request

Types

type CaptchaSender

type CaptchaSender func(mobile, captcha string) (err error)

CaptchaSender send captcha to mobile

Jump to

Keyboard shortcuts

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