accounts

package
v0.0.0-...-d5f34b7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2014 License: GPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const AES_KEY = "KfiubrHiLTHb3eIf"

TODO: Come up with a better way of setting up keys. Namely, have a script change this part to some random value right before compilation. Hell, then no one would know the key

Variables

This section is empty.

Functions

func AuthSession

func AuthSession(id string)

Function that takes as input a session id and authenticates it

func CreateSession

func CreateSession(username string) (string, error)

Function that creates session and returns the id. Used exclusively by the login function that's also inside the accounts package

func InitTemplates

func InitTemplates()

func LoginHandler

func LoginHandler(w http.ResponseWriter, r *http.Request)

func SignUpHandler

func SignUpHandler(w http.ResponseWriter, r *http.Request)

Types

type FormError

type FormError struct {
	ErrorType string
	ErrorDesc string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL