Documentation ¶
Index ¶
Constants ¶
View Source
const TokenExpireDuration = time.Hour * 24 * 30
定义过期时间
Variables ¶
View Source
var MySecret = []byte("这是一段用于生成token的密钥")
定义secret
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.