Skip to content

Commit

Permalink
Fix login
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Dec 2, 2024
1 parent 625acde commit e0aa574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion token/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ func (g *Generator) getToken(r *http.Request) (*Token, error) {
return nil, errcode.ErrorCodeDenied
}

if account != user {
if account != "" && account != user {
return nil, errcode.ErrorCodeDenied
}

Expand Down

0 comments on commit e0aa574

Please sign in to comment.