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

Bearer tokens are app token
pull/12552/head
Morris Jobke 2018-11-20 11:49:33 +07:00 committed by GitHub
commit 53418f2795
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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