Documentation
¶
Index ¶
- Variables
- func ClearSession(response http.ResponseWriter)
- func EncryptPassword(password string) (string, error)
- func GetUserName(request *http.Request) (userName string)
- func GetUserNameString(value string) string
- func LoginIsCorrect(ctx context.Context, db store.Database, name string, password string) bool
- func SetSession(userName string, response http.ResponseWriter)
Constants ¶
This section is empty.
Variables ¶
View Source
var CookieHandler = securecookie.New( securecookie.GenerateRandomKey(64), securecookie.GenerateRandomKey(32))
Functions ¶
func ClearSession ¶
func ClearSession(response http.ResponseWriter)
func EncryptPassword ¶
func GetUserName ¶
func GetUserNameString ¶
func LoginIsCorrect ¶
func SetSession ¶
func SetSession(userName string, response http.ResponseWriter)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.