summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Stocker <me@chregu.tv>2011-08-29 10:37:50 +0200
committerChristian Stocker <me@chregu.tv>2011-08-29 10:37:50 +0200
commit07108c400a612c8ad7017837aba3e70841adafe2 (patch)
tree9cf12322fb0b73abb8565d465209f705cc967353
parent27fefc3efa4820670d625ce460fee37e11a7c814 (diff)
downloadGoogleAuthenticator.php-07108c400a612c8ad7017837aba3e70841adafe2.zip
GoogleAuthenticator.php-07108c400a612c8ad7017837aba3e70841adafe2.tar.gz
GoogleAuthenticator.php-07108c400a612c8ad7017837aba3e70841adafe2.tar.bz2
add a message about the OTP in the login
-rw-r--r--tmpl/ask-for-otp.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/tmpl/ask-for-otp.php b/tmpl/ask-for-otp.php
index fdcf10a..771e42f 100644
--- a/tmpl/ask-for-otp.php
+++ b/tmpl/ask-for-otp.php
@@ -2,6 +2,11 @@
<h1>please otp</h1>
<p>
<form method="post" action="./">
+<?php if ($debug) { ?>
+ <br/>
+ (Set $debug in index.php to false, if you don't want to have the OTP prefilled (for real life application, for example ;))<br/>
+<?php } ?>
+
otp: <input name="otp"
value="<?php
if ($debug) {
@@ -11,4 +16,5 @@ echo $g->getCode($user->getSecret());
?>"/><br/>
<input type="checkbox" name="remember" id="remember" /><label for="remember"> Remember verification for this computer for 1 day.</label> <br/>
<input type="submit"/>
+
</form> \ No newline at end of file