Page MenuHomeSealhub

Refactor Sealgen forms so the getFields function takes context as an argument
Open, NormalPublic3 Points

Description

Currently the getFields function doesn't take context as argument — this is the case because each form class is instantiated only once — so only one Form instance for login form, another one for forgot password form, etc.

This task is about changing that, so a new form instance is created upon every request — we probably have to change the .mount method to be static, and create an instance of the form for each request.

This way we could have a more dynamic behavior, where some users for example don't see certain fields or the fields for those users aren't required.

Details

Coded by
JayNecessary
Action required from
JayNecessary

Revisions and Commits