[GH-ISSUE #92] $secret = $request->input('secret'); not found #273

Closed
opened 2026-03-01 17:48:48 +03:00 by kerem · 1 comment
Owner

Originally created by @JordyKroeze on GitHub (Feb 10, 2018).
Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/92

Hello,

When i follow the readme i get a QRcode and everyting.

But i get this error if i try to check the code.

Notice: Undefined variable: request in FILENAME on line 30

Fatal error: Call to a member function input() on a non-object in FILENAME on line 30

Line 30 is this (Changed my secretkey)
$secret = $request->input('abcdef');

Where is this request variable coming from ?

Originally created by @JordyKroeze on GitHub (Feb 10, 2018). Original GitHub issue: https://github.com/antonioribeiro/google2fa/issues/92 Hello, When i follow the readme i get a QRcode and everyting. But i get this error if i try to check the code. Notice: Undefined variable: request in FILENAME on line 30 Fatal error: Call to a member function input() on a non-object in FILENAME on line 30 Line 30 is this (Changed my secretkey) $secret = $request->input('abcdef'); Where is this request variable coming from ?
kerem closed this issue 2026-03-01 17:48:48 +03:00
Author
Owner

@JordyKroeze commented on GitHub (Feb 10, 2018):

Nevermind, found it.
You have to get the key they enter there.

<!-- gh-comment-id:364685744 --> @JordyKroeze commented on GitHub (Feb 10, 2018): Nevermind, found it. You have to get the key they enter there.
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/google2fa#273
No description provided.