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:
![[Image: unnamed.png]](https://camo.mybb.com/5896485c16baff26e82597c838c7a4b4463a0e81/68747470733a2f2f692e6962622e636f2f3573426a4246772f756e6e616d65642e706e67)
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