This commit is contained in:
@@ -309,7 +309,7 @@ func (h *AuthController) GoogleLogin(c fiber.Ctx) error {
|
|||||||
|
|
||||||
redirect := c.Query("redirect")
|
redirect := c.Query("redirect")
|
||||||
if redirect == "" {
|
if redirect == "" {
|
||||||
redirect = "https://localhost:3000"
|
redirect = "http://localhost:3000"
|
||||||
}
|
}
|
||||||
|
|
||||||
data := models.OAuthState{
|
data := models.OAuthState{
|
||||||
@@ -427,7 +427,7 @@ func (h *AuthController) GoogleCallback(c fiber.Ctx) error {
|
|||||||
|
|
||||||
redirectURL := data.RedirectURL
|
redirectURL := data.RedirectURL
|
||||||
if !allowed[redirectURL] {
|
if !allowed[redirectURL] {
|
||||||
redirectURL = "https://localhost:3000"
|
redirectURL = "http://localhost:3000"
|
||||||
}
|
}
|
||||||
|
|
||||||
return c.Redirect().To(redirectURL)
|
return c.Redirect().To(redirectURL)
|
||||||
|
|||||||
Reference in New Issue
Block a user