Sometimes, when I access the forum, I receive a code in my mail address and even though it's used right away, it says it's wrong.
So a moment later another one arrives but it works.
Is it the same for you?
'); document.write(''); var yuipath = 'clientscript/yui'; var yuicombopath = ''; var remoteyui = false; } else // Load Rest of YUI remotely (where possible) { var yuipath = 'https://ajax.googleapis.com/ajax/libs/yui/2.9.0/build'; var yuicombopath = ''; var remoteyui = true; if (!yuicombopath) { document.write(''); } } var SESSIONURL = ""; var SECURITYTOKEN = "guest"; var IMGDIR_MISC = "warmane/misc"; var IMGDIR_BUTTON = "warmane/buttons"; var vb_disable_ajax = parseInt("0", 10); var SIMPLEVERSION = "422"; var BBURL = "https://forum.warmane.com"; var LOGGEDIN = 0 > 0 ? true : false; var THIS_SCRIPT = "showthread"; var RELPATH = "showthread.php?p=3258882&t=478204&viewfull=1"; var PATHS = { forum : "", cms : "", blog : "" }; var AJAXBASEURL = "https://forum.warmane.com/"; var CoTTooltips = { rename: true, icons: false, iconsize: 15, qualitycolor: true, overridecolor: { spells: '#839309', items: '', npcs: '#fff', objects: '#fff', quests: '#ffb100', achievements: '#fff' } }; // -->
Sometimes, when I access the forum, I receive a code in my mail address and even though it's used right away, it says it's wrong.
So a moment later another one arrives but it works.
Is it the same for you?
How quickly do you use them, because they have really short duration? It never happened to me that code is wrong if I used it within 15-20 seconds.
I always use it within a few seconds, under 30 or 40 seconds more or less, but always less than a minute.
You can log in through the game client first (the code’s validity period is quite long , it might last for more than 5 minutes, though I’m not sure). Once you authorize your IP by logging into the game, you’ll be able to log into the website instantly without needing to enter the 2FA code.
Or simply keep your email inbox open so you can quickly copy the code and paste it into the 2FA field on the website.
I am aware of what you wrote, what is strange is that it only happens on the forum.
On the other hand, when the code is requested via game login, even if more than 1 minute passes, it's accepted.
Email is slow, it could take some time for it to send and be delivered and if it was generated near the end of the time interval you may receive it late. There's other methods such as using any 2FA app you prefer on your phone or just write your own script to generate 2FA codes from secrets.
I've used this one for python: https://pypi.org/project/pyotp/
and this one for java: https://github.com/j256/two-factor-auth
The secret you need is printed under https://www.warmane.com/account/security once you select Google Authenticator.