Skip to content

Commit

Permalink
Merge pull request #12545 from nextcloud/backport/12543/stable14
Browse files Browse the repository at this point in the history
[stable14] Bearer tokens are app token
  • Loading branch information
rullzer authored Nov 20, 2018
2 parents b4a410e + adf1488 commit e07db91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,10 @@ public function tryTokenLogin(IRequest $request) {
if(!$this->validateToken($token)) {
return false;
}

// Set the session variable so we know this is an app password
$this->session->set('app_password', $token);

return true;
}

Expand Down

0 comments on commit e07db91

Please sign in to comment.