Remove tokens for missing CAS attributes

Created on 5 March 2024, 9 months ago

Problem/Motivation

This problem is related to the token replacement functionality provided by this module. If there is no replacement value, the name of the token is printed instead of a blank screen.

Steps to reproduce

The scenario in which we discovered this bug was a webform that is available to anonymous users .. however if the user was already authenticated we wanted to prepopulate the email address. As that information is unavailable if you are not authenticated it was simply printing the text `[cas:attribute:attribute-name] `

Proposed resolution

For any CAS attribute exposed as a token, remove the replacement if the corresponding attribute is not available.

Remaining tasks

Review, test, and commit.

User interface changes

N/A

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Needs review

Version

2.0

Component

CAS Attributes

Created by

πŸ‡ΊπŸ‡ΈUnited States partyka

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024