| @@ 185-193 (lines=9) @@ | ||
| 182 | if ($options['user'] === 'init') { |
|
| 183 | $this->token = $this->session->get('BoxTokens'); |
|
| 184 | ||
| 185 | if ($this->token) { |
|
| 186 | try { |
|
| 187 | $this->_bd_refreshToken(); |
|
| 188 | } catch (Exception $e) { |
|
| 189 | $this->setError($e->getMessage()); |
|
| 190 | $this->token = null; |
|
| 191 | $this->session->remove('BoxTokens'); |
|
| 192 | } |
|
| 193 | } |
|
| 194 | ||
| 195 | if (empty($this->token)) { |
|
| 196 | $result = false; |
|
| @@ 181-189 (lines=9) @@ | ||
| 178 | if ($options['user'] === 'init') { |
|
| 179 | $this->token = $this->session->get('OneDriveTokens'); |
|
| 180 | ||
| 181 | if ($this->token) { |
|
| 182 | try { |
|
| 183 | $this->_od_refreshToken(); |
|
| 184 | } catch (Exception $e) { |
|
| 185 | $this->setError($e->getMessage()); |
|
| 186 | $this->token = null; |
|
| 187 | $this->session->remove('OneDriveTokens'); |
|
| 188 | } |
|
| 189 | } |
|
| 190 | ||
| 191 | if (empty($this->token)) { |
|
| 192 | $result = false; |
|