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 ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.