mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-22 10:06:28 +08:00
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