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 <roeland@famdouma.nl>
pull/12543/head
Roeland Jago Douma 7 years ago
parent c9af398644
commit c2beb36bfc
No known key found for this signature in database
GPG Key ID: F941078878347C0C
  1. 4
      lib/private/User/Session.php

@ -783,6 +783,10 @@ class Session implements IUserSession, Emitter {
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;
}

Loading…
Cancel
Save