summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Riesen <chris.riesen@gmail.com>2016-11-30 01:23:11 +0100
committerGitHub <noreply@github.com>2016-11-30 01:23:11 +0100
commite85a008d3deb156200eb9149ceb7144b18a3a400 (patch)
treebad74223fc20c68884bf2e082c5027aae190f434
parentb441f8338c0375df3e288225acefb943c0b3cb05 (diff)
downloadotp-e85a008d3deb156200eb9149ceb7144b18a3a400.zip
otp-e85a008d3deb156200eb9149ceb7144b18a3a400.tar.gz
otp-e85a008d3deb156200eb9149ceb7144b18a3a400.tar.bz2
Fixed totp example in README
Thanks to @fkooman for the hint.
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 896ad38..d724f64 100644
--- a/README.md
+++ b/README.md
@@ -59,7 +59,7 @@ if ($otp->checkTotp(Base32::decode($secret), $key)) {
}
// Just to create a key for display (testing)
-$key = $otp->totp($secret);
+$key = $otp->totp(Base32::decode($secret));
```