Only allow user 2 attempts to pass assessment
We have some e-learning that contains an assessment at the end of the module. However, we only want to allow the user to have 2 attempts at passing the assessment. If the user does not pass the assessment twice and tries to complete the assessment a third time, the module only allows the user to view the last attempt and what answers were picked. So far so good. However, if the user closes the module and then runs the module again. The module allows the user 2 more attempts.
Is there a way of stopping this from happening, or should this be made at LMS level?
I hope it makes sense.
Thanks in advance.