Call to a member function getDisplayName()

Created on 6 November 2023, 11 months ago
Updated 13 June 2024, 4 months ago

Problem/Motivation

Error: Call to a member function getDisplayName() on string in Drupal\tfa_duo\Plugin\TfaValidation\TfaDuoValidation->getDuoIframe() (line 160 of /app/modules/tfa_duo/src/Plugin/TfaValidation/TfaDuoValidation.php).

Steps to reproduce

Set up module. Attempt to log in.

Proposed resolution

It looks like the form argument is a uid not he fully populated user object.

Remaining tasks

Replace the code to load the user before calling getDisplayName()

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States andyg5000 North Carolina, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024