Merge pull request #12545 from nextcloud/backport/12543/stable14

[stable14] Bearer tokens are app token
This commit is contained in:
Roeland Jago Douma 2018-11-20 20:06:39 +01:00 committed by GitHub
commit e07db91900
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -776,6 +776,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;
}