diff options
author | Morris Jobke <hey@morrisjobke.de> | 2018-11-20 11:49:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-20 11:49:33 +0100 |
commit | 53418f2795abb423286ea4551f47ffcd9dabc254 (patch) | |
tree | 451ed8be7ecdbfa007a1b2c7c4245d0991202bbe /lib | |
parent | cc6c30e7695eb04df3660a386350292a568c4d26 (diff) | |
parent | c2beb36bfc090cbcf94d283b99befa82f6193c37 (diff) | |
download | nextcloud-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.php | 4 |
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; } |