summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Riesen <chris.riesen@gmail.com>2015-02-12 10:11:49 +0100
committerChristian Riesen <chris.riesen@gmail.com>2015-02-12 10:11:49 +0100
commita209b8bbd975d96d6b5287f8658562061adef1f8 (patch)
treec0f6c8256f6dce40acf011f79c2112a5bc25c694
parent13dc7411bf66f8dbcfba4a2c1dde498b98a46bc2 (diff)
parent7b1c92e964a440d3059c13cff2d18453ff2a2a4a (diff)
downloadotp-1.4.zip
otp-1.4.tar.gz
otp-1.4.tar.bz2
Merge pull request #2 from Naxiz/master1.4
Add issuer to options
-rw-r--r--src/Otp/GoogleAuthenticator.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Otp/GoogleAuthenticator.php b/src/Otp/GoogleAuthenticator.php
index c21e4b3..dee2401 100644
--- a/src/Otp/GoogleAuthenticator.php
+++ b/src/Otp/GoogleAuthenticator.php
@@ -87,6 +87,12 @@ class GoogleAuthenticator
$otpauth .= '&period=' . $options['period'];
}
+ // issuer
+ // Defaults to none
+ if (array_key_exists('issuer', $options)) {
+ $otpauth .= '&issuer=' . $options['issuer'];
+ }
+
return $otpauth;
}