To be using a door code or some kind of numerical combination suggests that we have the necessary information to gain access. Not to know the code or to have forgotten it indicates that we must be more careful in future.

This meaning holds good if we do not know the correct code of behaviour.