mirror of https://github.com/Xhofe/alist
chore: remove wrapper of user
parent
f102b130db
commit
69d1287254
|
@ -63,5 +63,5 @@ func Login(c *gin.Context) {
|
||||||
func CurrentUser(c *gin.Context) {
|
func CurrentUser(c *gin.Context) {
|
||||||
user := c.MustGet("user").(*model.User)
|
user := c.MustGet("user").(*model.User)
|
||||||
user.Password = ""
|
user.Password = ""
|
||||||
common.SuccessResp(c, gin.H{"user": user})
|
common.SuccessResp(c, user)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue