|
|
@@ -4,6 +4,7 @@ package web_api
|
|
|
import (
|
|
|
"fmt"
|
|
|
"log"
|
|
|
+ "net/http"
|
|
|
"time"
|
|
|
|
|
|
"github.com/gofiber/fiber/v2"
|
|
|
@@ -446,5 +447,5 @@ func (сам *ВебАпи) логин(кнт *fiber.Ctx) error {
|
|
|
Expires: time.Now().Add(24 * time.Hour),
|
|
|
HTTPOnly: true,
|
|
|
})
|
|
|
- return кнт.Redirect("/gui/list_bot")
|
|
|
+ return кнт.Redirect("/gui/list_bot", http.StatusSeeOther)
|
|
|
}
|