fix(cloudreve): skip init login when using cookie (#4341)

pull/4347/head
Xi Wuuuuuuuuuuuu~~~~~~~~~~~~~~~ 2023-05-08 19:25:36 +08:00 committed by GitHub
parent b03879403f
commit 9502f5acd7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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()
}