fix: login redirect
This commit is contained in:
@@ -71,7 +71,7 @@ export const actions = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log('Redirecting to:', 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}`);
|
throw redirect(303, next || `${base}/auth/about/${responseBody.user_id}`);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -249,6 +249,7 @@ func (uc *UserController) LoginHandler(c *gin.Context) {
|
|||||||
|
|
||||||
c.JSON(http.StatusOK, gin.H{
|
c.JSON(http.StatusOK, gin.H{
|
||||||
"message": "Login successful",
|
"message": "Login successful",
|
||||||
|
"user_id": user.ID,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user