func adminLogin(w http.ResponseWriter, r *http.Request, c *webc.Context) { c.Login("admin") c.SetFlash("success", "You are now logged into. Enjoy") http.Redirect(w, r, "/admin", 303) }
func multiLogin(w http.ResponseWriter, r *http.Request, c *webc.Context) { slug := c.GetPathVar("slug") c.Login("driver") c.SetFlash("success", "You are now logged into "+slug+". Enjoy") http.Redirect(w, r, "/"+slug, 303) }