Merge pull request #83 from brainfoolong/master

convert issuer to string prevents php 8.1 errors
This commit is contained in:
Will Power
2021-12-19 18:21:51 +00:00
committed by GitHub
+1 -1
View File
@@ -272,7 +272,7 @@ class TwoFactorAuth
{
return 'otpauth://totp/' . rawurlencode($label)
. '?secret=' . rawurlencode($secret)
. '&issuer=' . rawurlencode($this->issuer)
. '&issuer=' . rawurlencode((string)$this->issuer)
. '&period=' . intval($this->period)
. '&algorithm=' . rawurlencode(strtoupper($this->algorithm))
. '&digits=' . intval($this->digits);