Hey man! Thanks for the plugin. Quick question tho! When I try to edit the plugin options to add my server ID it gives me this error when attempting to save:
In case people were curious, I ended up getting this to work. Here's how I did it:
$tfaEnabled = $user->Option->use_tfa;
if ($tfaEnabled) {
$tfaRepository = $user->repository('XF:Tfa');
if ($tfaRepository->userRequiresTfa($user)) {
$tfaTrustValue = $_POST['key']...
Is there an easy way of doing this? I'm attempting to include an entire index I wrote in PHP (including some CSS and additional pages) into a page node but I'm guessing (because a simple require/include isn't working) that there's a tricky way of doing this.
Thanks!
Hey, thanks for the reply man. How do I reference the plugin, though?
XF::service('XF:User\Login'); is for the service... but I don't see anything referencing a plugin.
Hey man! Thanks for the reply. Nah, not trying to disable it. Attempting to integrate the checks into the script so that I can validate through the game client through java.
I have everything else supported.. just can't figure out how to handle two-step for the life of me. I need to check if they have it active, then see if it's currently saved and if not, save it. Anybody have any ideas?
<?php
$ip = $_POST['ip'];
$name = $_POST['name'];
$pass = $_POST['pass']...