show-qr.php 393 B

1234567891011
  1. <h1>Please scan this </h1>
  2. <p> with <a href="http://www.google.com/support/a/bin/answer.py?hl=en&answer=1037451">the Google Authenticator App</a></p>
  3. <p>
  4. <?php
  5. $link = \Sonata\GoogleAuthenticator\GoogleQrUrl::generate($user->getUsername(), $secret, 'GoogleAuthenticatorExample');
  6. ?>
  7. <a href="<?php echo $link; ?>"><img style="border: 0; padding:10px" src="<?php echo $link; ?>"/></a>
  8. </p>