revert method in gantry core and add similar function to get 2FA for
Missing twofactor auth in gantry templates offline.php