Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bearer tokens are app token
Fixes #12498

This means that we set that it is a proper app token once it is
validated. This will allow the 2FA middleware to just run the same
check.

Signed-off-by: Roeland Jago Douma <[email protected]>
  • Loading branch information
rullzer committed Nov 20, 2018
commit c2beb36bfc090cbcf94d283b99befa82f6193c37
4 changes: 4 additions & 0 deletions lib/private/User/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,6 +783,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