Better history management for plugins
Summary
As discussed in #2593 (closed) , some plugins may need to store extra information in the login history. Our plugin framework should provide:
- A way for a plugin to automatically add new fields to sessionDataToRemember without requiring manual configuration
- A way to specify that some fields are not visible to the user (in the portal)
Design proposition
- Add a new array to Portal objects
- Add a new helper method in the base plugin class that lets plugins register their fields in this object
- Modify registerLogin to add these fields
- Add a new variable such as sessionDataToRememberHidden and adjust sumUpSession accordingly