Skip to content

Commit 5f0dd97

Browse files
committed
MC-40692: 2FA Google Authenticator iPhone QR Code compatibility
1 parent ed19e85 commit 5f0dd97

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

TwoFactorAuth/Model/Provider/Engine/Google.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ private function generateSecret(): string
100100
$secret = random_bytes(128);
101101
// seed for iOS devices to avoid errors with barcode
102102
$seed = 'abcd';
103+
103104
return preg_replace('/[^A-Za-z0-9]/', '', Base32::encode($seed . $secret));
104105
}
105106

0 commit comments

Comments
 (0)