fix: fix event dispatch (#2555)

This commit is contained in:
Alexis Saettler
2019-04-01 06:11:38 +02:00
committed by GitHub
parent afcafa679b
commit 397c3e4885
20 changed files with 406 additions and 119 deletions
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Auth;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use PragmaRX\Google2FALaravel\Facade as Google2FA;
class Validate2faController extends Controller
{
@@ -25,6 +26,12 @@ class Validate2faController extends Controller
public static function loginCallback()
{
app('pragmarx.google2fa')->login();
try {
app('pragmarx.google2fa')->stateless = false;
} catch (\Exception $e) {
// catch exception until pragmarx/google2fa-laravel package is fixed
// See https://github.com/antonioribeiro/google2fa-laravel/pull/55
}
Google2FA::login();
}
}