Merge pull request #12543 from nextcloud/fix/12498/bearer_tokens_are_apptokens

Bearer tokens are app token
This commit is contained in:
Morris Jobke 2018-11-20 11:49:33 +01:00 committed by GitHub
commit 53418f2795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}