Skip to content
Snippets Groups Projects
Unverified Commit c2beb36b authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

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: default avatarRoeland Jago Douma <roeland@famdouma.nl>
parent c9af3986
No related branches found
No related tags found
No related merge requests found
...@@ -783,6 +783,10 @@ class Session implements IUserSession, Emitter { ...@@ -783,6 +783,10 @@ class Session implements IUserSession, Emitter {
if(!$this->validateToken($token)) { if(!$this->validateToken($token)) {
return false; return false;
} }
// Set the session variable so we know this is an app password
$this->session->set('app_password', $token);
return true; return true;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment