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

Properly fix undefined index errors on action=logintfa #8017

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

Oldiesmann
Copy link
Contributor

Description

My initial fix for the "undefined index" errors on the TFA lgoin screen in #8001 ignored the fact that we're using || instead of &&, so it didn't actually fix the issue - we're still checking for self::$profiles[$id]['dataset'] even if self::$profiles[$id] is empty (set but an empty array). Using empty() instead of !empty() fixes the logic.

Properly fixes #7983 this time.

@jdarwood007 jdarwood007 added this to the 3.0 Alpha 1 milestone Jan 14, 2024
@jdarwood007 jdarwood007 merged commit 15a3c95 into SimpleMachines:release-3.0 Jan 14, 2024
3 checks passed
@Oldiesmann Oldiesmann deleted the fix_tfa_login branch January 14, 2024 02:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[3.0]: "Undefined array key" errors when logging in with TFA
2 participants