diff options
author | Christian Stocker <me@chregu.tv> | 2011-08-29 10:37:50 +0200 |
---|---|---|
committer | Christian Stocker <me@chregu.tv> | 2011-08-29 10:37:50 +0200 |
commit | 07108c400a612c8ad7017837aba3e70841adafe2 (patch) | |
tree | 9cf12322fb0b73abb8565d465209f705cc967353 | |
parent | 27fefc3efa4820670d625ce460fee37e11a7c814 (diff) | |
download | GoogleAuthenticator.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.php | 6 |
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 |