Skip to content
Grav 2.0 is officially stable. Read the announcement →
Plugins

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

Started by Ondrej Vysek 8 years ago · 0 replies · 579 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 Vladimir Novak, 6 days ago
3 158 4 days ago
Plugins · by Mathieu Lecouturier, 2 weeks ago
3 239 2 weeks ago
Plugins · by Slebeig, 1 month ago
1 373 1 month ago
Plugins · by Rene, 2 months ago
2 538 2 months ago
Plugins · by Xavier, 3 months ago
2 456 3 months ago