I think since the door would open like normal with the trigger there, you'd want it to close by itself, so the "Delay before reset" parameter may not work. Instead just send a second output telling the door to lock. When a door is locked it wont open or close.
So: "OnPass"-door-Open and "OnPass"-door-SetLocked
(it's SetLocked iirc, if it's something else you get the idea)