Skip to content
● Critical PHP security fixes are out: update PHP on your Grav sites. What to do →

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

Started by Ondrej Vysek 8 years ago · 0 replies · 744 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, 2 days ago
2 86 5 hours ago
Plugins · by renedebaaij, 1 week ago
1 137 3 days ago
Plugins · by Thomas, 6 days ago
1 145 5 days ago
Plugins · by complanar, 4 weeks ago
6 472 3 weeks ago
Plugins · by BenLaKnet, 3 weeks ago
1 298 3 weeks ago