The login form results in a fatal error even if TFA is not enabled in two cases
1) The plugin the module is trying to look for does not exist.
2) The plugin value is an empty string which happens in case of reset as the settings don't exist.
Proposed resolution
- Stop further processing if TFA is not enabled and continue the normal login flow thereby not trying to instantiate a plugin which might not exist.
- An empty check on the plugin name to prevent the module from trying to instantiate a plugin with id as an empty string.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2930385-fatal-error-tfa-not-enabled-2.patch | 1.45 KB | therealssj |
Comments
Comment #2
therealssj commentedComment #3
nerdsteinCode review looks great and Daggerhart is doing a smoke test now
Comment #4
daggerhart commentedThis applies, works and fixes another issue I was struggling with. RTBC!
Comment #6
nerdsteinFixed