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

Revision

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

Revision 121 Revision 123
Zeile 8... Zeile 8...
8
    {
8
    {
9
        //
9
        //
Zeile 10... Zeile 10...
10
 
10
 
11
        public function create()
11
        public function create()
12
        {
-
 
-
 
12
        {
13
            dd( auth() );
13
 
-
 
14
            $google2fa = app( 'pragmarx.google2fa' );
-
 
15
            if ( !auth()->google2fa_secret )
14
            $google2fa = app( 'pragmarx.google2fa' );
16
            {
-
 
17
                $registration_data["google2fa_secret"] = $google2fa->generateSecretKey();
-
 
18
            }
-
 
19
            else
-
 
20
            {
-
 
21
                $registration_data["google2fa_secret"] = auth()->google2fa_secret;
15
            $registration_data["google2fa_secret"] = $google2fa->generateSecretKey();
22
            }
16
            $QR_Image = $google2fa->getQRCodeInline(
23
            $QR_Image = $google2fa->getQRCodeInline(
17
                config( 'app.name' ),
24
                config( 'app.name' ),
18
                $registration_data['email'],
25
                $registration_data['email'],
19
                $registration_data['google2fa_secret']
26
                $registration_data['google2fa_secret']
20
            );
27
            );
-
 
28
            return view( 'toolbox.ga', [
21
            return view( 'toolbox.ga', [ 'img'    => $QR_Image,
29
                'img'    => $QR_Image,
22
                                         'secret' => $registration_data['google2fa_secret']
30
                'secret' => $registration_data['google2fa_secret']
23
            ] );
31
            ] );
24
        }
32
        }