[GH-ISSUE #46] Using a space results in an invalid barcode #20

Closed
opened 2026-02-25 20:32:12 +03:00 by kerem · 1 comment
Owner

Originally created by @mvdnbrk on GitHub (Aug 19, 2016).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/46

If you use a company new with a space it wil result in an invalid barcode.

$google2fa_url = Google2FA::getQRCodeGoogleUrl(
    'My Company',
    $user->email,
    $user->google2fa_secret
);
Originally created by @mvdnbrk on GitHub (Aug 19, 2016). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/46 If you use a company new with a space it wil result in an invalid barcode. ``` $google2fa_url = Google2FA::getQRCodeGoogleUrl( 'My Company', $user->email, $user->google2fa_secret ); ```
kerem closed this issue 2026-02-25 20:32:12 +03:00
Author
Owner

@antonioribeiro commented on GitHub (Oct 26, 2016):

Fixed in https://github.com/antonioribeiro/google2fa/pull/53

<!-- gh-comment-id:256235092 --> @antonioribeiro commented on GitHub (Oct 26, 2016): Fixed in https://github.com/antonioribeiro/google2fa/pull/53
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#20
No description provided.