Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

2FA QR Code name same for all users on 1 device

Started by Ondrej Vysek 8 years ago · 0 replies · 836 views
8 years ago

2FA code created with the same name for all users. So if you want to have more usrs in your phone app, previous is overwritten as it same. I would recommend changing

plugins/login/classes/TwoFactorAuth/TwoFactorAuth.php
line 69 from this:
$label = $username . ':' . Grav::instance()['config']->get('site.title');
to this:
$label = $username . ':' . $username . " @ " . Grav::instance()['config']->get('site.title');

this will create unique entry for each user even on the same device

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 1 month ago
2 477 1 month ago
Plugins · by renedebaaij, 2 months ago
1 349 1 month ago
Plugins · by Thomas, 1 month ago
1 374 1 month ago
Plugins · by complanar, 2 months ago
6 698 2 months ago
Plugins · by BenLaKnet, 2 months ago
1 641 2 months ago