Problem/Motivation

We currently store codes assuming that no two plugins will ever generate the same code.

This is a inaccurate assumption.

Addtionaly we prevent plugins from cleaning up codes that no longer need to be stored as a plugin may not be able to determine if a code is one of its own. see #3210491: Cleanup accepted codes stored in user data

Steps to reproduce

Proposed resolution

Add the plugin name when storing accepted codes.
Check for a hash existing with the plugin name and without the plugin name for BC.

Remaining tasks

User interface changes

None

API changes

TBD

Data model changes

An id will be stored with each hash.

Comments

cmlara created an issue. See original summary.

cmlara’s picture

Title: storeAcceptedCode()/alreadyAcceptedCode should check plugin name » storeAcceptedCode()/alreadyAcceptedCode should check token id.
Issue summary: View changes

Changing this from plugin name to a token id.

Plugins may want to offer multiple tokens as such the plugin id alone would not be sufficient.