This commit is contained in:
Christoph Wurst 2016-08-22 13:32:16 +02:00
Родитель 9fa4b44b4e
Коммит bcef1062fc
2 изменённых файлов: 2 добавлений и 4 удалений

Просмотреть файл

@ -84,8 +84,7 @@ class SettingsController extends Controller {
$qrCode = new QrCode();
$secretName = $this->getSecretName();
$issuer = $this->getSecretIssuer();
$x = "otpauth://totp/$secretName?secret=$secret&issuer=$issuer";
$qr = $qrCode->setText($x)
$qr = $qrCode->setText("otpauth://totp/$secretName?secret=$secret&issuer=$issuer")
->setSize(150)
->getDataUri();
return [

Просмотреть файл

@ -85,8 +85,7 @@ class SettingsControllerTest extends TestCase {
$qrCode = new QrCode();
$issuer = rawurlencode('https://instance.com (' . $this->defaults->getName() . ')');
$x = "otpauth://totp/user%40instance.com?secret=newsecret&issuer=$issuer";
$qr = $qrCode->setText($x)
$qr = $qrCode->setText("otpauth://totp/user%40instance.com?secret=newsecret&issuer=$issuer")
->setSize(150)
->getDataUri();