chore: ignore password for get current user
This commit is contained in:
@ -60,5 +60,6 @@ func Login(c *gin.Context) {
|
||||
// if token is empty, return guest user
|
||||
func CurrentUser(c *gin.Context) {
|
||||
user := c.MustGet("user").(*model.User)
|
||||
user.Password = ""
|
||||
common.SuccessResp(c, gin.H{"user": user})
|
||||
}
|
||||
|
Reference in New Issue
Block a user