Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChallengeUser ¶
func ChallengeUser(c Challenger, p Prompter) bool
ChallengeUser requests a challenge from c and prompts the user for an answer using p. If the user's answer matches the challenge then ChallengeUser returns true. All comparisons are performed using constant-time checks to prevent information leaks.
Types ¶
type Challenger ¶
Challenger is implemented by objects that can generate CAPTCHA image challenges.
Click to show internal directories.
Click to hide internal directories.