| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 11 | 
| Code Lines | 6 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php declare(strict_types=1); | ||
| 51 | public function open(): void | ||
| 52 |     { | ||
| 53 |         if (!($this->backendConfig instanceof Config)) { | ||
| 54 | // won't work w/o having the backend config for open() | ||
| 55 | return; | ||
| 56 | } | ||
| 57 | |||
| 58 |         if (isset($this->backendConfig['sso_auth_user_token'])) { | ||
| 59 | $this->backendConfig->importConfigArray([ | ||
| 60 | 'user' => SeafileApi::USER_PREFIX_AUTH_TOKEN . ConfigUtil::loadSmtpAddress(), | ||
| 61 | 'password' => $this->backendConfig['sso_auth_user_token'], | ||
| 62 | ]); | ||
| 66 |