summaryrefslogtreecommitdiffstats
path: root/vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php')
-rw-r--r--vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php b/vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php
new file mode 100644
index 0000000..774a298
--- /dev/null
+++ b/vendor/sonata-project/google-authenticator/sample/tmpl/show-qr.php
@@ -0,0 +1,11 @@
+<h1>Please scan this </h1>
+
+<p> with <a href="http://www.google.com/support/a/bin/answer.py?hl=en&answer=1037451">the Google Authenticator App</a></p>
+
+<p>
+<?php
+$link = \Sonata\GoogleAuthenticator\GoogleQrUrl::generate($user->getUsername(), $secret, 'GoogleAuthenticatorExample');
+?>
+
+<a href="<?php echo $link; ?>"><img style="border: 0; padding:10px" src="<?php echo $link; ?>"/></a>
+</p>