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 · 848 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 Cédric, 2 years ago
4 532 1 day ago
Plugins · by DrPen, 1 month ago
2 511 1 month ago
Plugins · by renedebaaij, 2 months ago
1 383 1 month ago
Plugins · by Thomas, 2 months ago
1 402 1 month ago
Plugins · by complanar, 2 months ago
6 730 2 months ago