summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2018-11-20 11:49:33 +0100
committerGitHub <noreply@github.com>2018-11-20 11:49:33 +0100
commit53418f2795abb423286ea4551f47ffcd9dabc254 (patch)
tree451ed8be7ecdbfa007a1b2c7c4245d0991202bbe /lib
parentcc6c30e7695eb04df3660a386350292a568c4d26 (diff)
parentc2beb36bfc090cbcf94d283b99befa82f6193c37 (diff)
downloadnextcloud-server-53418f2795abb423286ea4551f47ffcd9dabc254.tar.gz
nextcloud-server-53418f2795abb423286ea4551f47ffcd9dabc254.zip
Merge pull request #12543 from nextcloud/fix/12498/bearer_tokens_are_apptokens
Bearer tokens are app token
Diffstat (limited to 'lib')
-rw-r--r--lib/private/User/Session.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 674f38e2401..8d1cfd13a50 100644
--- a/lib/private/User/Session.php
+++ b/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;
}