fix: login redirect

This commit is contained in:
Alex
2025-03-02 23:28:45 +01:00
parent f719a0bbf5
commit bb56d1f7c7
2 changed files with 3 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ export const actions = {
}
}
console.log('Redirecting to:', next || `${base}/auth/about/${responseBody.user.id}`);
throw redirect(303, next || `${base}/auth/about/${responseBody.user.id}`);
console.log('Redirecting to:', next || `${base}/auth/about/${responseBody.user_id}`);
throw redirect(303, next || `${base}/auth/about/${responseBody.user_id}`);
}
};

View File

@@ -249,6 +249,7 @@ func (uc *UserController) LoginHandler(c *gin.Context) {
c.JSON(http.StatusOK, gin.H{
"message": "Login successful",
"user_id": user.ID,
})
}