Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable28] AppAPI: allow to bypass Two-Factor #42519

Merged
merged 1 commit into from Dec 29, 2023

Conversation

backportbot-nextcloud[bot]
Copy link

Backport of #42479

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
if ($this->session->exists('app_password') || $this->twoFactorManager->isTwoFactorAuthenticated($user)) {
if ($this->session->exists('app_password') // authenticated using an app password
|| $this->session->exists('app_api') // authenticated using an AppAPI Auth
|| $this->twoFactorManager->isTwoFactorAuthenticated($user)) {

Check notice

Code scanning / Psalm

PossiblyNullArgument Note

Argument 1 of OC\Authentication\TwoFactorAuth\Manager::isTwoFactorAuthenticated cannot be null, possibly null value provided
@bigcat88 bigcat88 merged commit 30f23a6 into stable28 Dec 29, 2023
50 checks passed
@bigcat88 bigcat88 deleted the backport/42479/stable28 branch December 29, 2023 11:28
@blizzz blizzz mentioned this pull request Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants