Skip to content

Commit

Permalink
fix return url
Browse files Browse the repository at this point in the history
  • Loading branch information
asminog committed Dec 9, 2019
1 parent d410126 commit fd0b64e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/actions/LoginAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@
*/
class LoginAction extends BaseAction
{
public $returnUrl = null;

/**
* Initiate login process using Saml.
* @return void
*/
public function run()
{
$this->samlInstance->login((!empty(Yii::$app->user->returnUrl) ? Yii::$app->user->returnUrl : Yii::$app->homeUrl));
$this->samlInstance->login($this->returnUrl);
}

}

0 comments on commit fd0b64e

Please sign in to comment.