title: 2FA Setup in PHP will not scan QR code on iOS
body: <p>I am using this documentation on setting up 2FA for my web app.</p>
  
  <p><a href="https://github.com/Voronenko/PHPOTP/wiki/Simple-PHP-implementation-of-two-factor-authentication" rel="nofollow noreferrer">https://github.com/Voronenko/PHPOTP/wiki/Simple-PHP-implementation-of-two-factor-authentication</a></p>
  
  <p>I have managed to implement it fine and i am using the Authy app which works great on Android, however when trying to scan the QR code on an iOS device, its saying the QR Code is invalid.</p>
  
  <p>I cannot work out why its saying the QR Code is invalid.</p>
  
  <p>I am using this PHP code to generate the QR code:</p>
  
  <pre><code>print sprintf('&lt;img src="%s"/&gt;',TokenAuth6238::getBarCodeUrl('user', 'url', $secretkey, 'issuer'));
  </code></pre>
  
  <p>There are no problems on Android, iOS will work to generate the authentication code and verify when setup using the key manually but the QR just will not scan.</p>
  
  <p>Does anyone have any ideas what could cause this to happen?</p>