Conditions | 4 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function run() |
||
19 | { |
||
20 | /// Fixed problem with repeated return from HIAM |
||
21 | try { |
||
22 | return parent::run(); |
||
23 | } catch (\Exception $e) { |
||
24 | $isLoggedIn = !empty(Yii::$app->user->id); |
||
25 | if ($e->getMessage() === 'Invalid auth state parameter.' && $isLoggedIn) { |
||
26 | return $this->redirectSuccess(); |
||
27 | } |
||
28 | } |
||
29 | } |
||
30 | } |
||
31 |