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:
@@ -11,7 +11,12 @@ import (
|
||||
func Auth(c *gin.Context) {
|
||||
token := c.GetHeader("Authorization")
|
||||
if token == "" {
|
||||
guest, _ := db.GetGuest()
|
||||
guest, err := db.GetGuest()
|
||||
if err != nil {
|
||||
common.ErrorResp(c, err, 500, true)
|
||||
c.Abort()
|
||||
return
|
||||
}
|
||||
c.Set("user", guest)
|
||||
c.Next()
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user