[#31955] Two factor authentication is broken in the back-end (Fix #1939)