Fix small typo
This commit is contained in:
parent
4185a266b8
commit
9390f7a0b2
2
main.go
2
main.go
|
@ -149,7 +149,7 @@ func main() {
|
||||||
})
|
})
|
||||||
|
|
||||||
router.GET("/account", func(c *gin.Context) {
|
router.GET("/account", func(c *gin.Context) {
|
||||||
loggedIn, err := c.Cookie("loggedIn")
|
loggedIn, err := c.Cookie("loggedin")
|
||||||
if errors.Is(err, http.ErrNoCookie) || loggedIn != "true" {
|
if errors.Is(err, http.ErrNoCookie) || loggedIn != "true" {
|
||||||
c.HTML(200, "login.html", gin.H{})
|
c.HTML(200, "login.html", gin.H{})
|
||||||
return
|
return
|
||||||
|
|
Reference in New Issue