Documentation
¶
Overview ¶
A nonce is a number or string used only once. This is useful for generating a unique token for login pages to prevent duplicate or unauthorized submissions. @url github.com/LarryBattle/nonce-golang @license MIT , 2013 @author Larry Battle, github.com/LarryBattle
Index ¶
Constants ¶
View Source
const ( Version = "0.1.0" Token_New = true Token_Used = false )
Variables ¶
This section is empty.
Functions ¶
func CheckThenMarkToken ¶
Checks if the token is known and new. After the check, the token is marked as unused
func CheckToken ¶
Checks for three conditions. 1. If a token is supplied 2. If the passed token was created 3. If the passed token isn't used' An error will be returned if any of the conditions are false
Types ¶
Click to show internal directories.
Click to hide internal directories.