Merge pull request #12546 from nextcloud/backport/12543/stable13

[stable13] Bearer tokens are app token
This commit is contained in:
Julius Härtl 2018-11-20 15:21:43 +01:00 committed by GitHub
commit d268a97d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

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