mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
Merge pull request #12543 from nextcloud/fix/12498/bearer_tokens_are_apptokens
Bearer tokens are app token
This commit is contained in:
commit
53418f2795
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue