--
This commit is contained in:
parent
5e668f6756
commit
cdd3d30cbb
@ -6,6 +6,8 @@ import (
|
||||
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/model"
|
||||
"penahub.gitlab.yandexcloud.net/backend/quiz/common.git/repository/quiz"
|
||||
"time"
|
||||
"fmt"
|
||||
"net/url"
|
||||
"unicode/utf8"
|
||||
)
|
||||
|
||||
@ -473,9 +475,11 @@ func (s *Service) MiniPart(ctx *fiber.Ctx) error {
|
||||
return ctx.Status(fiber.StatusInternalServerError).SendString(err.Error())
|
||||
}
|
||||
|
||||
fmt.Println("OLOLO", string(shifr))
|
||||
|
||||
ctx.Cookie(&fiber.Cookie{
|
||||
Name: "quizUser",
|
||||
Value: string(shifr),
|
||||
Value: url.QueryEscape(string(shifr)),
|
||||
})
|
||||
|
||||
return ctx.Redirect(s.redirectURl, fiber.StatusFound)
|
||||
|
Loading…
Reference in New Issue
Block a user