Skip to content

Commit fbac3a7

Browse files
committed
chore: updater per review input
Signed-off-by: Josh <josh.t.richards@gmail.com>
1 parent 9378c2f commit fbac3a7

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

lib/base.php

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1190,15 +1190,14 @@ public static function handleLogin(OCP\IRequest $request): bool {
11901190
if ($userSession->tryTokenLogin($request)) {
11911191
return true;
11921192
}
1193+
$username = $request->getCookie('nc_username');
1194+
$token = $request->getCookie('nc_token');
1195+
$sessionId = $request->getCookie('nc_session_id');
11931196
if (
1194-
$request->getCookie('nc_username') !== null
1195-
&& $request->getCookie('nc_token') !== null
1196-
&& $request->getCookie('nc_session_id') !== null
1197-
&& $userSession->loginWithCookie(
1198-
$request->getCookie('nc_username'),
1199-
$request->getCookie('nc_token'),
1200-
$request->getCookie('nc_session_id')
1201-
)
1197+
$username !== null
1198+
&& $token !== null
1199+
&& $sessionId !== null
1200+
&& $userSession->loginWithCookie($username, $token, $sessionId)
12021201
) {
12031202
return true;
12041203
}

0 commit comments

Comments
 (0)