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

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Plugins

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

Started by Ondrej Vysek 8 years ago · 0 replies · 432 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 Rene, 1 week ago
2 42 1 week ago
Plugins · by Xavier, 4 weeks ago
2 53 4 weeks ago
Plugins · by Luka Prinčič, 7 years ago
3 1179 1 month ago
Plugins · by Sebastian van de Meer, 1 month ago
1 47 1 month ago
Plugins · by PIERROT Alain, 2 months ago
3 71 2 months ago