We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
After I log in, the options in the menu bar are still register and login
The text was updated successfully, but these errors were encountered:
You need to update the render() function in main.go in order to pass the variable to the templates.
render()
func render(c *gin.Context, data gin.H, templateName string) { loggedInInterface, _ := c.Get("is_logged_in") data["is_logged_in"] = loggedInInterface.(bool) switch c.Request.Header.Get("Accept") { case "application/json": c.JSON(http.StatusOK, data["payload"]) case "application/xml": c.XML(http.StatusOK, data["payload"]) default: c.HTML(http.StatusOK, templateName, data) } }
Sorry, something went wrong.
No branches or pull requests
After I log in, the options in the menu bar are still register and login
The text was updated successfully, but these errors were encountered: