You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this Google Authenticator but I keep getting the message that my OTP is wrong while this is the right one after I followed the tutorial correctly. Can someone tell me where the error is?
I tried this Google Authenticator but I keep getting the message that my OTP is wrong while this is the right one after I followed the tutorial correctly. Can someone tell me where the error is?
Web.php
`Route::middleware(['2fa'])->group(function () {
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');
Route::post('/2fa', function () {
return redirect(route('home'));
})->name('2fa');
});
Route::get('/complete-registration', [App\Http\Controllers\Auth\RegisterController::class, 'completeRegistration'])->name('complete.registration');`
User Model
` protected $fillable = [
'name',
'email',
'password',
'google2fa_secret',
];
Register Controller
` protected function create(array $data)
{
return User::create([
'name' => $data['name'],
'email' => $data['email'],
'password' => Hash::make($data['password']),
'google2fa_secret' => $data['google2fa_secret'],
]);
}
The text was updated successfully, but these errors were encountered: