Bearer tokens are app token
Fixes #12498 This means that we set that it is a proper app token once it is validated. This will allow the 2FA middleware to just run the same check. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
b4a410e502
commit
adf1488e4e
|
@ -776,6 +776,10 @@ class Session implements IUserSession, Emitter {
|
||||||
if(!$this->validateToken($token)) {
|
if(!$this->validateToken($token)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Set the session variable so we know this is an app password
|
||||||
|
$this->session->set('app_password', $token);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue