Skip to content

Commit

Permalink
fix(cloudreve): skip init login when using cookie (#4341)
Browse files Browse the repository at this point in the history
  • Loading branch information
ty114514 authored May 8, 2023
1 parent b038794 commit 9502f5a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/cloudreve/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ func (d *Cloudreve) GetAddition() driver.Additional {
}

func (d *Cloudreve) Init(ctx context.Context) error {
if d.Cookie != "" {
return nil
}
return d.login()
}

Expand Down

0 comments on commit 9502f5a

Please sign in to comment.