Skip to content

Commit 470ad18

Browse files
committed
code cleanup
1 parent 2540437 commit 470ad18

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

CASLogin.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,10 @@ function authenticate() {
110110
\CAS_GracefullTerminationException::throwInsteadOfExiting();
111111

112112
// force CAS authentication
113-
$result = \phpCAS::forceAuthentication();
114-
// get authenticated username
115-
$user = \phpCAS::isAuthenticated() ? \phpCAS::getUser() : FALSE;
113+
\phpCAS::forceAuthentication();
116114

117-
return $user;
115+
// Return authenticated username
116+
return \phpCAS::getUser();
118117
}
119118

120119

0 commit comments

Comments
 (0)