summaryrefslogtreecommitdiff
path: root/app/Auth
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-07-10 14:18:10 -0400
committerFrederic Guillot <fred@kanboard.net>2016-07-10 14:18:10 -0400
commit34d0995d55e61474023bbd003d16ac3441d753b6 (patch)
tree992cf27c2fe01fbcb1928725752f86d1ca9ed913 /app/Auth
parent8a85550f92020286ed11ef8f663029e70a6fedd0 (diff)
Cherry-pick from PR #2435 (Show TOTP Issuer)
Diffstat (limited to 'app/Auth')
-rw-r--r--app/Auth/TotpAuth.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/Auth/TotpAuth.php b/app/Auth/TotpAuth.php
index f4304930..8e1ebe35 100644
--- a/app/Auth/TotpAuth.php
+++ b/app/Auth/TotpAuth.php
@@ -123,7 +123,8 @@ class TotpAuth extends Base implements PostAuthenticationProviderInterface
return '';
}
- return GoogleAuthenticator::getQrCodeUrl('totp', $label, $this->secret);
+ $options = array('issuer' => TOTP_ISSUER);
+ return GoogleAuthenticator::getQrCodeUrl('totp', $label, $this->secret, null, $options);
}
/**
@@ -139,6 +140,7 @@ class TotpAuth extends Base implements PostAuthenticationProviderInterface
return '';
}
- return GoogleAuthenticator::getKeyUri('totp', $label, $this->secret);
+ $options = array('issuer' => TOTP_ISSUER);
+ return GoogleAuthenticator::getKeyUri('totp', $label, $this->secret, null, $options);
}
}