diff options
-rw-r--r-- | src/Otp/GoogleAuthenticator.php | 6 |
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; } |