features/bootstrapping #1
@ -21,10 +21,10 @@ func (h *Handler) UserAfterLogin(c echo.Context) error {
|
||||
if err != nil {
|
||||
return Render(c, http.StatusBadRequest, users.AfterLogin(err.Error(), false))
|
||||
}
|
||||
|
||||
SetCookie(c, domain.CookieToken, resp.Token)
|
||||
SetCookie(c, domain.CookieRefreshToken, resp.RefreshToken)
|
||||
SetCookie(c, domain.CookieUser, user)
|
||||
|
||||
SetCookie(c, domain.CookieToken, resp.Token, "/")
|
||||
SetCookie(c, domain.CookieRefreshToken, resp.RefreshToken, "/")
|
||||
SetCookie(c, domain.CookieUser, user, "/")
|
||||
|
||||
return Render(c, http.StatusOK, users.AfterLogin("Login Successful!", true))
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user