Fix issues found by static analysis (#878)

This commit is contained in:
Matthew Brown
2018-03-04 18:23:33 +01:00
committed by Alexis Saettler
parent af59fa2b7e
commit 749caa2c03
25 changed files with 37 additions and 23 deletions
@@ -2,8 +2,8 @@
namespace App\Http\Controllers\Settings;
use Google2FA;
use Illuminate\Http\Request;
use PragmaRX\Google2FA\Google2FA;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\RedirectsUsers;
use PragmaRX\Google2FALaravel\Support\Authenticator;
@@ -41,7 +41,7 @@ class MultiFAController extends Controller
$user = $request->user();
//generate image for QR barcode
$imageDataUri = Google2FA::getQRCodeInline(
$imageDataUri = app('pragmarx.google2fa')->getQRCodeInline(
$request->getHttpHost(),
$user->email,
$secret,