begin dashboard
This commit is contained in:
1 parent
6d1611341a
commit
e3a811b224
121 files changed
+34389
-1662
No files matched your search
@@ -2,7 +2,6 @@ package controllers
|
||||
|
||||
import (
|
||||
"context"
|
||||
"fmt"
|
||||
"os"
|
||||
"time"
|
||||
|
||||
@@ -250,7 +249,6 @@ func Login(c *fiber.Ctx) error {
|
||||
}
|
||||
|
||||
func Logout(c *fiber.Ctx) error {
|
||||
fmt.Println("here")
|
||||
cookie := fiber.Cookie{
|
||||
Name: "jwt",
|
||||
Value: "",
|
||||
@@ -259,7 +257,5 @@ func Logout(c *fiber.Ctx) error {
|
||||
}
|
||||
c.Cookie(&cookie)
|
||||
|
||||
return c.Status(fiber.StatusOK).Render("index", fiber.Map{
|
||||
"loggedIn": false,
|
||||
})
|
||||
return c.Status(fiber.StatusOK).Redirect("/")
|
||||
}
|
||||
Reference in new issue
Block a user