Documentation ¶
Index ¶
- func CaptchaLogSender(mobile, captcha string) (err error)
- func EnableCaptchaAuth(s *o2.Oauth2Server, captchaStore o2x.CaptchaStore, sender CaptchaSender)
- func SendCaptcha(w http.ResponseWriter, r *http.Request) (err error)
- func SendCaptchaHandler(w http.ResponseWriter, r *http.Request)
- func ValidationCaptchaTokenRequest(r *http.Request) (gt oauth2.GrantType, tgr *oauth2.TokenGenerateRequest, err error)
- type CaptchaSender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CaptchaLogSender ¶
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 ¶
CaptchaSender send captcha to mobile
Click to show internal directories.
Click to hide internal directories.