Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

Revision 119 | Revision 123 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 119 Revision 121
Zeile 1... Zeile 1...
1
<?php
1
<?php
Zeile 2... Zeile 2...
2
 
2
 
Zeile 3... Zeile 3...
3
namespace App\Http\Controllers;
3
    namespace App\Http\Controllers;
Zeile 4... Zeile 4...
4
 
4
 
5
use Illuminate\Http\Request;
5
    use Illuminate\Http\Request;
6
 
6
 
7
class GoogleAuthenticatorController extends Controller
7
    class GoogleAuthenticatorController extends Controller
-
 
8
    {
-
 
9
        //
-
 
10
 
-
 
11
        public function create()
-
 
12
        {
-
 
13
            dd( auth() );
-
 
14
            $google2fa = app( 'pragmarx.google2fa' );
-
 
15
            $registration_data["google2fa_secret"] = $google2fa->generateSecretKey();
-
 
16
            $QR_Image = $google2fa->getQRCodeInline(
-
 
17
                config( 'app.name' ),
-
 
18
                $registration_data['email'],
-
 
19
                $registration_data['google2fa_secret']
-
 
20
            );
-
 
21
            return view( 'toolbox.ga', [ 'img'    => $QR_Image,
-
 
22
                                         'secret' => $registration_data['google2fa_secret']