summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Riesen <christian.riesen@liip.ch>2013-12-27 18:13:01 +0100
committerChristian Riesen <christian.riesen@liip.ch>2013-12-27 18:13:01 +0100
commitdd1af68f8ea8e7fe6d0d2726b61adb966b5c04df (patch)
treec3e2fe9a4518301f564d38d9d67b18099aefe043
parent4bfaf4fa4a2f1069bf5b6606be93ea1de1f20a1c (diff)
downloadotp-dd1af68f8ea8e7fe6d0d2726b61adb966b5c04df.zip
otp-dd1af68f8ea8e7fe6d0d2726b61adb966b5c04df.tar.gz
otp-dd1af68f8ea8e7fe6d0d2726b61adb966b5c04df.tar.bz2
Fix example script
-rw-r--r--example/index.php9
1 files changed, 2 insertions, 7 deletions
diff --git a/example/index.php b/example/index.php
index a9ef2ea..e436cb8 100644
--- a/example/index.php
+++ b/example/index.php
@@ -1,17 +1,12 @@
<?php
-error_reporting(E_ALL | E_STRICT);
-ini_set('display_errors', 1);
session_start(); // using it as storage temporary
-require_once __DIR__ . '/../src/Otp/Base32.php';
-require_once __DIR__ . '/../src/Otp/OtpInterface.php';
-require_once __DIR__ . '/../src/Otp/Otp.php';
-require_once __DIR__ . '/../src/Otp/GoogleAuthenticator.php';
+require_once __DIR__ . '/../vendor/autoload.php';
use Otp\Otp;
-use Otp\Base32;
use Otp\GoogleAuthenticator;
+use Base32\Base32;
// Getting a secret, either by generating or from storage
// DON'T use sessions as storage for this in production!!!