2023-10-24, 12:42 PM
I saw after some test that the 2FA of the admin page is not containing any issuer, and so in my 2FA application FreeOTP it shows:
Instead of "Fedora", Unknown issuer
Instead of "[email protected]", <your_username>@<the_name_of_your_mybb>
For that, you just need to change in L.146:
https://github.com/mybb/mybb/blob/c3dcfa...s.php#L146
I don't know the consequence of this change on the 2FA feature, it's why I didn't create a PR
With this change you'll have
Instead of "Fedora", <the_name_of_your_mybb>
Instead of "[email protected]", <your_username>@AdminCP
Cheers
Instead of "Fedora", Unknown issuer
Instead of "[email protected]", <your_username>@<the_name_of_your_mybb>
For that, you just need to change in L.146:
https://github.com/mybb/mybb/blob/c3dcfa...s.php#L146
$qr = $auth->getQRCodeGoogleUrl($mybb->user['username']."@AdminCP", $admin_options['authsecret'], str_replace(" ", "", $mybb->settings['bbname']));
I don't know the consequence of this change on the 2FA feature, it's why I didn't create a PR
With this change you'll have
Instead of "Fedora", <the_name_of_your_mybb>
Instead of "[email protected]", <your_username>@AdminCP
Cheers