In the login module, index.js, the filterRequirements function filters for three phases.
The uponSubmit filter is:
onTimeRequirements: Object.fromEntries(requirements.filter(requirement => requirement.phase === 'uponSubmit')),
and it should be:
onTimeRequirements: Object.fromEntries(requirements.filter(([ , requirement ]) => requirement.phase === 'uponSubmit')),
To Reproduce
Step by step instructions to reproduce the behavior:
- Create a uponSubmit login requirement
- Test to see if it is executed and it will show that it is never applied