Skip to content

Commit a1199c5

Browse files
committed
Update README.md
1 parent 445d6b0 commit a1199c5

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

README.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,6 @@ Event::listen('saml2.loginRequestReceived', function(Saml2User $user)
6767
$laravelUser = //find user by ID or attribute
6868
//if it does not exist create it and go on or show an error message
6969
Auth::login($laravelUser);
70-
$redirectUrl = $user->getIntendedUrl(); //this is URL::full() in our example
71-
if($redirectUrl !== null){
72-
Redirect::to($redirectUrl);
73-
}else {
74-
Redirect::to('/');
75-
}
76-
7770
});
7871
```
7972
### Log out
@@ -90,8 +83,6 @@ Event::listen('saml2.logoutRequestReceived', function()
9083
{
9184
Auth::logout();
9285
//echo "bye, we logged out.";
93-
//For case 2, logout() will redirect somewhere else. If we are here, it's case 1, so we can redirect elsewhere
94-
Redirect::to('/public');
9586
});
9687
```
9788

0 commit comments

Comments
 (0)