Skip to content

Commit

Permalink
Merge pull request #11090 from nextcloud/backport/11082/stable14
Browse files Browse the repository at this point in the history
[stable14] Do not invalidate main token on OAuth
  • Loading branch information
rullzer authored Sep 7, 2018
2 parents 5b89eff + 5485932 commit e296f7d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/Controller/ClientFlowLoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -366,10 +366,10 @@ public function generateAppPassword($stateToken,

$serverPath = $protocol . "://" . $this->request->getServerHost() . $serverPostfix;
$redirectUri = 'nc://login/server:' . $serverPath . '&user:' . urlencode($loginName) . '&password:' . urlencode($token);
}

// Clear the token from the login here
$this->tokenProvider->invalidateToken($sessionId);
// Clear the token from the login here
$this->tokenProvider->invalidateToken($sessionId);
}

return new Http\RedirectResponse($redirectUri);
}
Expand Down

0 comments on commit e296f7d

Please sign in to comment.