2FA setup QR code broken #80

Closed
kelunik opened this Issue Jul 2, 2016 · 3 comments

Comments

Projects
None yet
2 participants
@kelunik
Contributor

kelunik commented Jul 2, 2016

The QR code doesn't load due to a error 500 in http://localhost:8001/bridge/my/account/2-factor/qr-code

DEBUG ERROR: Error

Call to undefined function BaconQrCode\Renderer\Image\imagecreatetruecolor()

0

#0 /var/www/airship/vendor/bacon/bacon-qr-code/src/BaconQrCode/Renderer/Image/AbstractRenderer.php(299): BaconQrCode\Renderer\Image\Png->init()
#1 /var/www/airship/vendor/bacon/bacon-qr-code/src/BaconQrCode/Writer.php(84): BaconQrCode\Renderer\Image\AbstractRenderer->render(Object(BaconQrCode\Encoder\QrCode))
#2 /var/www/airship/vendor/bacon/bacon-qr-code/src/BaconQrCode/Writer.php(103): BaconQrCode\Writer->writeString('otpauth://totp/...', 'ISO-8859-1', 1)
#3 /var/www/airship/vendor/paragonie/multi-factor/src/Vendor/GoogleAuth.php(86): BaconQrCode\Writer->writeFile('otpauth://totp/...', 'php://output')
#4 /var/www/airship/src/Cabin/Bridge/Landing/Account.php(311): ParagonIE\MultiFactor\Vendor\GoogleAuth->makeQRCode(Object(BaconQrCode\Writer), 'php://output', 'test@localhost:...', '', '')
#5 /var/www/airship/src/Engine/AutoPilot.php(429): Airship\Cabin\Bridge\Landing\Account->twoFactorSetupQRCode()
#6 /var/www/airship/src/Engine/AutoPilot.php(264): Airship\Engine\AutoPilot->serve(Array, Array)
#7 /var/www/airship/src/public/index.php(152): Airship\Engine\AutoPilot->route()
#8 {main}<!-- Load time: 0.31713 s -->
@paragonie-scott

This comment has been minimized.

Show comment
Hide comment
@paragonie-scott

paragonie-scott Jul 2, 2016

Member

It appears I added ext-gd to the documentation but not to composer.json.

Member

paragonie-scott commented Jul 2, 2016

It appears I added ext-gd to the documentation but not to composer.json.

@kelunik

This comment has been minimized.

Show comment
Hide comment
@kelunik

kelunik Jul 2, 2016

Contributor

It's also missing in the Dockerfile then.

Contributor

kelunik commented Jul 2, 2016

It's also missing in the Dockerfile then.

@paragonie-scott

This comment has been minimized.

Show comment
Hide comment
@paragonie-scott

paragonie-scott Jul 3, 2016

Member

As a second layer of mitigation, I've set it to default to SVG (which doesn't require the GD extension) if said extension is not available. 05aa978

Member

paragonie-scott commented Jul 3, 2016

As a second layer of mitigation, I've set it to default to SVG (which doesn't require the GD extension) if said extension is not available. 05aa978

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment